Added nvim keymaps for vim lsp (rename etc)
This commit is contained in:
parent
47e7f07201
commit
f148347f3c
@ -88,9 +88,6 @@ keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts)
|
||||
keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts)
|
||||
keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts)
|
||||
|
||||
-- Format document --
|
||||
keymap("n", "<leader><leader>f", "<cmd>Format<cr>", opts)
|
||||
|
||||
-- close buffer --
|
||||
keymap("n", "<leader>q", "<cmd>Bdelete! %d<cr>", opts)
|
||||
|
||||
@ -103,4 +100,12 @@ keymap("n", "<F8>", ":FloatermPrev<cr>", opts)
|
||||
keymap("n", "<F9>", ":FloatermNext<cr>", opts)
|
||||
keymap("n", "<F12>", ":FloatermToggle<cr>", opts)
|
||||
|
||||
|
||||
-- LSP
|
||||
keymap("n", "<leader><leader>f", "<cmd>Format<cr>", opts)
|
||||
keymap("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts)
|
||||
keymap("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
|
||||
keymap("n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||
keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
|
||||
keymap("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
|
||||
keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
|
||||
keymap("n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
|
||||
|
Loading…
Reference in New Issue
Block a user