diff options
Diffstat (limited to '.config/nvim/lua/options.lua')
| -rw-r--r-- | .config/nvim/lua/options.lua | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 4093897..f1efff1 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -3,6 +3,8 @@ vim.g.maplocalleader = " " vim.g.have_nerd_font = true +vim.opt.showmode = false + vim.opt.number = true vim.opt.relativenumber = true @@ -32,31 +34,13 @@ vim.opt.splitbelow = true -- vim.opt.list = true -- vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +vim.opt.list = true +vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } + vim.opt.cursorline = true vim.opt.scrolloff = 8 vim.opt.hlsearch = true -vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') - -vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) - -vim.api.nvim_create_autocmd('TextYankPost', { - desc = 'Highlight when yanking (copying) text', - group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), - callback = function() - vim.highlight.on_yank() - end, -}) - - - - - - - |
