all repos — dotfiles @ f713de8850ef33ed54eb44bbec2af3fd797ad8b7

my *nix dotfiles

nvim: remain in visual after indenting
Anirudh Oppiliappan x@icyphox.sh
Tue, 15 Feb 2022 11:51:39 +0530
commit

f713de8850ef33ed54eb44bbec2af3fd797ad8b7

parent

9e8687309488aad0c29456fb4fb9ee642e0cb365

1 files changed, 4 insertions(+), 10 deletions(-)

jump to
M config/nvim/lua/maps.luaconfig/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