fix(neovim): allow window navigation with C-hjkl
This commit is contained in:
parent
0fb3de3438
commit
ad6f8e5233
@ -6,10 +6,10 @@ vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- Move around windows
|
||||
nnoremap("<C-h>", "<C-w>h")
|
||||
nnoremap("<C-j>", "<C-w>j")
|
||||
nnoremap("<C-k>", "<C-w>k")
|
||||
nnoremap("<C-l>", "<C-w>l")
|
||||
nnoremap("<C-h>", ":wincmd h<CR>")
|
||||
nnoremap("<C-j>", ":wincmd j<CR>")
|
||||
nnoremap("<C-k>", ":wincmd k<CR>")
|
||||
nnoremap("<C-l>", ":wincmd l<CR>")
|
||||
|
||||
-- Switch buffers
|
||||
nnoremap("<C-PageDown>", ":TablineBufferNext<CR>")
|
||||
|
@ -13,7 +13,6 @@ local on_attach = function(client, bufnr)
|
||||
nnoremap("gi", telescope.lsp_implementations)
|
||||
nnoremap("gr", telescope.lsp_references)
|
||||
nnoremap("K", vim.lsp.buf.hover)
|
||||
nnoremap("<C-k>", vim.lsp.buf.signature_help)
|
||||
nnoremap("<leader>rn", vim.lsp.buf.rename)
|
||||
nnoremap("<leader>ca", vim.lsp.buf.code_action)
|
||||
nnoremap("<leader>f", vim.lsp.buf.formatting)
|
||||
|
Reference in New Issue
Block a user