diff options
author | Adam <adam.moloney.stuck@gmail.com> | 2021-10-14 18:31:05 +0200 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2021-10-14 18:40:13 +0200 |
commit | 8c2947ba288859882404fd89eb16aa70294ee471 (patch) | |
tree | 11b826dfdc88a85479018c312afab8a91c7addda /.config/nvim | |
parent | cc94abeebde2bd51bd74d14ee7e15b994024e54b (diff) |
Vim improved lsp bindings
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/binds.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 181391e..a1f3f10 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -33,8 +33,12 @@ map('n', '<leader>fg', '<cmd>Telescope live_grep<cr>', opts) map('n', '<leader>fb', '<cmd>Telescope buffers<cr>', opts) map('n', '<leader>fh', '<cmd>Telescope help_tags<cr>', opts) -map('n', '<leader>fu', '<cmd>Telescope lsp_references<cr>', opts) map('n', '<leader>gd', '<cmd>Telescope lsp_definitions<cr>', opts) +map('n', '<leader>gD', '<cmd>Telescope lsp_declarations<cr>', opts) +map('n', '<leader>gr', '<cmd>Telescope lsp_references<cr>', opts) +map('n', '<leader>gi', '<cmd>Telescope lsp_implementations<cr>', opts) +map('n', '<leader>K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts) +map('n', '<leader><C-k>', '<cmd>lua vim.lsp.buf.signature_help()<cr>', opts) map('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>', opts) map('n', '<leader>xd', '<cmd>Telescope lsp_document_diagnostics<cr>', opts) map('n', '<leader>xD', '<cmd>Telescope lsp_workspace_diagnostics<cr>', opts) |