diff --git a/nvim/.config/nvim/lua/romanzy/commands.lua b/nvim/.config/nvim/lua/romanzy/commands.lua index 25c1a1b..7536b9e 100644 --- a/nvim/.config/nvim/lua/romanzy/commands.lua +++ b/nvim/.config/nvim/lua/romanzy/commands.lua @@ -23,20 +23,4 @@ ac("LspAttach", { 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]]) diff --git a/nvim/.config/nvim/lua/romanzy/options.lua b/nvim/.config/nvim/lua/romanzy/options.lua index 682c1ff..95c94c2 100644 --- a/nvim/.config/nvim/lua/romanzy/options.lua +++ b/nvim/.config/nvim/lua/romanzy/options.lua @@ -1,11 +1,9 @@ local g = vim.g local o = vim.opt --- Leaders g.mapleader = " " -- Uses space as the global leader key. g.maplocalleader = " " -- Uses space as the local leader key. --- Layout and display o.number = true -- Shows absolute line numbers. o.relativenumber = true -- Shows relative numbers for easier motion. o.cursorline = true -- Highlights the line under the cursor. @@ -24,19 +22,16 @@ o.listchars = { } -- Defines how invisible characters are rendered. o.termguicolors = true -- Enables full RGB color support. o.mouse = "" -- Disables mouse support. - --- Indentation and editing o.tabstop = 4 -- Renders tab characters as four columns. o.softtabstop = 4 -- Makes tab/backspace feel like four spaces. o.shiftwidth = 4 -- Uses four columns for each indent step. o.expandtab = true -- Inserts spaces when indenting by default. o.smartindent = true -- Adds indentation automatically on new lines. o.swapfile = false -- Disables swapfile creation. - --- Search and update behavior o.incsearch = true -- Updates search matches as you type. o.updatetime = 50 -- Reduces idle delay for swap and CursorHold events. o.spelllang = { "en_us" } -- Uses US English for spell checking. - --- Shell 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]])