mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-25 06:36:42 +00:00
nvim: more lsp bindings for definitions :)
This commit is contained in:
parent
f7ba2f25a9
commit
dfe535907a
|
@ -112,6 +112,9 @@ vim.g.mapleader = " "
|
|||
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
||||
vim.keymap.set('n', '<leader>a', "<cmd>AerialToggle!<CR>")
|
||||
vim.keymap.set('n', 'gd', function() vim.lsp.buf.definition() end)
|
||||
vim.keymap.set('n', 'gD', function() vim.lsp.buf.type_definition() end)
|
||||
vim.keymap.set('n', '<leader>d', function() vim.lsp.buf.definition() end)
|
||||
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.code_action() end)
|
||||
vim.keymap.set('n', '<leader>h', function() vim.lsp.buf.hover() end)
|
||||
vim.keymap.set('n', '<leader>r', function() vim.lsp.buf.rename() end)
|
||||
|
|
Loading…
Reference in a new issue