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