cleanup configs
This commit is contained in:
@@ -23,20 +23,4 @@ ac("LspAttach", {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
-- ac("LspAttach", {
|
|
||||||
-- group = aug("lsp_attach_disable_ruff_hover", { clear = true }),
|
|
||||||
-- callback = function(args)
|
|
||||||
-- local client = vim.lsp.get_client_by_id(args.data.client_id)
|
|
||||||
-- if client == nil then
|
|
||||||
-- return
|
|
||||||
-- end
|
|
||||||
-- if client.name == "ruff" then
|
|
||||||
-- client.server_capabilities.hoverProvider = false
|
|
||||||
-- end
|
|
||||||
-- end,
|
|
||||||
-- desc = "LSP: Disable hover capabilties for ruff",
|
|
||||||
-- })
|
|
||||||
|
|
||||||
|
|
||||||
-- Only show the invisible characters inside the code editing buffers
|
|
||||||
vim.cmd([[autocmd BufWinEnter * if &buftype != '' | setlocal nolist | endif]])
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
local g = vim.g
|
local g = vim.g
|
||||||
local o = vim.opt
|
local o = vim.opt
|
||||||
|
|
||||||
-- Leaders
|
|
||||||
g.mapleader = " " -- Uses space as the global leader key.
|
g.mapleader = " " -- Uses space as the global leader key.
|
||||||
g.maplocalleader = " " -- Uses space as the local leader key.
|
g.maplocalleader = " " -- Uses space as the local leader key.
|
||||||
|
|
||||||
-- Layout and display
|
|
||||||
o.number = true -- Shows absolute line numbers.
|
o.number = true -- Shows absolute line numbers.
|
||||||
o.relativenumber = true -- Shows relative numbers for easier motion.
|
o.relativenumber = true -- Shows relative numbers for easier motion.
|
||||||
o.cursorline = true -- Highlights the line under the cursor.
|
o.cursorline = true -- Highlights the line under the cursor.
|
||||||
@@ -24,19 +22,16 @@ o.listchars = {
|
|||||||
} -- Defines how invisible characters are rendered.
|
} -- Defines how invisible characters are rendered.
|
||||||
o.termguicolors = true -- Enables full RGB color support.
|
o.termguicolors = true -- Enables full RGB color support.
|
||||||
o.mouse = "" -- Disables mouse support.
|
o.mouse = "" -- Disables mouse support.
|
||||||
|
|
||||||
-- Indentation and editing
|
|
||||||
o.tabstop = 4 -- Renders tab characters as four columns.
|
o.tabstop = 4 -- Renders tab characters as four columns.
|
||||||
o.softtabstop = 4 -- Makes tab/backspace feel like four spaces.
|
o.softtabstop = 4 -- Makes tab/backspace feel like four spaces.
|
||||||
o.shiftwidth = 4 -- Uses four columns for each indent step.
|
o.shiftwidth = 4 -- Uses four columns for each indent step.
|
||||||
o.expandtab = true -- Inserts spaces when indenting by default.
|
o.expandtab = true -- Inserts spaces when indenting by default.
|
||||||
o.smartindent = true -- Adds indentation automatically on new lines.
|
o.smartindent = true -- Adds indentation automatically on new lines.
|
||||||
o.swapfile = false -- Disables swapfile creation.
|
o.swapfile = false -- Disables swapfile creation.
|
||||||
|
|
||||||
-- Search and update behavior
|
|
||||||
o.incsearch = true -- Updates search matches as you type.
|
o.incsearch = true -- Updates search matches as you type.
|
||||||
o.updatetime = 50 -- Reduces idle delay for swap and CursorHold events.
|
o.updatetime = 50 -- Reduces idle delay for swap and CursorHold events.
|
||||||
o.spelllang = { "en_us" } -- Uses US English for spell checking.
|
o.spelllang = { "en_us" } -- Uses US English for spell checking.
|
||||||
|
|
||||||
-- Shell
|
|
||||||
o.shell = "bash" -- Runs shell commands through bash.
|
o.shell = "bash" -- Runs shell commands through bash.
|
||||||
|
|
||||||
|
-- Only show the invisible characters inside the code editing buffers
|
||||||
|
vim.cmd([[autocmd BufWinEnter * if &buftype != '' | setlocal nolist | endif]])
|
||||||
|
|||||||
Reference in New Issue
Block a user