summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-14 18:31:05 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-14 18:31:05 +0200
commit8191812f222792a3f97894672f8654d03d30d5e9 (patch)
treebd6f240bb4315e3e6bbde604e76c465f36d80eb2 /.config
parent8430fafe74b834b7920c7a5919eac952e487e379 (diff)
Vim improved lsp bindings
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/binds.lua6
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)