diff --git a/nvim/init.lua b/nvim/init.lua index a632ad2..da7be0e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -175,10 +175,12 @@ vim.keymap.set({ 'n' }, 't', ':vsw:terminali', { silent = t vim.keymap.set({ 't' }, ';;', '', { silent = true, desc = 'Escape terminal mode' }) -- Window managment +vim.keymap.set('n', 'q', ':bp|bd#', { desc = 'Close current buffer ' }) vim.keymap.set('n', 'w', '', { remap = true, desc = 'Alias for Ctrl + w' }) vim.keymap.set('n', 'k', 'w', { remap = true, desc = 'Jump to the next window' }) vim.keymap.set('n', 'K', ':vsw', { desc = 'Split window to the right' }) -vim.keymap.set('n', 'q', ':b#|bd#', { desc = 'Close current buffer ' }) + +-- Navigation vim.keymap.set('n', 'h', '', { desc = 'Back' }) vim.keymap.set('n', 'l', '', { desc = 'Forward' }) @@ -254,10 +256,10 @@ require('lazy').setup({ 'nvim-lualine/lualine.nvim', opts = { options = { - icons_enabled = false, - component_separators = '|', - section_separators = '', globalstatus = true, + icons_enabled = false, + section_separators = '', + component_separators = '|', }, }, }, @@ -439,8 +441,8 @@ require('lazy').setup({ text = { [vim.diagnostic.severity.ERROR] = icon, [vim.diagnostic.severity.WARN] = icon, - [vim.diagnostic.severity.HINT] = icon, [vim.diagnostic.severity.INFO] = icon, + [vim.diagnostic.severity.HINT] = icon, }, }, virtual_text = { @@ -532,9 +534,9 @@ require('lazy').setup({ }, --[[ cfg_lazy_cmp_keymaps ]] mapping = cmp.mapping.preset.insert { + [''] = cmp.mapping.complete {}, [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete {}, [''] = cmp.mapping.abort(), [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, @@ -595,8 +597,8 @@ require('lazy').setup({ keymaps = { init_selection = '', node_incremental = '', - scope_incremental = '', node_decremental = '', + scope_incremental = '', }, }, textobjects = { @@ -620,9 +622,9 @@ require('lazy').setup({ -- lazy.nvim options lockfile = '~/dotfiles/nvim/lazy-lock.json', ui = { - size = { width = 0.85, height = 0.7 }, backdrop = 100, border = 'solid', + size = { width = 0.85, height = 0.7 }, icons = { cmd = '[cmd]', config = '[cfg]',