nvim: remain in visual after indenting
Anirudh Oppiliappan x@icyphox.sh
Tue, 15 Feb 2022 11:51:39 +0530
1 files changed,
4 insertions(+),
10 deletions(-)
jump to
M
config/nvim/lua/maps.lua
→
config/nvim/lua/maps.lua
@@ -16,6 +16,10 @@ -- search matches in the middle of the window
map('n', 'n', 'nzzzv', options) map('n', 'N', 'Nzzzv', options) +-- remain in visual after indenting +map('v', '<', '<gv', options) +map('v', '>', '>gv', options) + -- Not an editor command: Wqa cmd(':command! WQ wq') cmd(':command! WQ wq')@@ -72,8 +76,6 @@ buf_set_keymap('n', 'gD', '<Cmd>lua vim.lsp.buf.declaration()<CR>', options)
buf_set_keymap('n', 'gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', options) end --- completion-nvim --- FIXME: rewrite this in Lua vim.api.nvim_exec([[ " Use <Tab> and <S-Tab> to navigate through popup menu inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"@@ -86,13 +88,5 @@ " Avoid showing message extra message when using completion
set shortmess+=c ]], false) - - --- walmart autopairs --- vim.api.nvim_set_keymap('i', '{', '{}<esc>i', options) --- vim.api.nvim_set_keymap('i', '(', '()<esc>i', options) --- vim.api.nvim_set_keymap('i', '[', '[]<esc>i', options) --- vim.api.nvim_set_keymap('i', '\'', '\'\'<esc>i', options) --- vim.api.nvim_set_keymap('i', '\"', '\"\"<esc>i', options) return M