From 8c2947ba288859882404fd89eb16aa70294ee471 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Oct 2021 18:31:05 +0200 Subject: Vim improved lsp bindings --- .config/nvim/lua/binds.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua') 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', 'fg', 'Telescope live_grep', opts) map('n', 'fb', 'Telescope buffers', opts) map('n', 'fh', 'Telescope help_tags', opts) -map('n', 'fu', 'Telescope lsp_references', opts) map('n', 'gd', 'Telescope lsp_definitions', opts) +map('n', 'gD', 'Telescope lsp_declarations', opts) +map('n', 'gr', 'Telescope lsp_references', opts) +map('n', 'gi', 'Telescope lsp_implementations', opts) +map('n', 'K', 'lua vim.lsp.buf.hover()', opts) +map('n', '', 'lua vim.lsp.buf.signature_help()', opts) map('n', 'rn', 'lua vim.lsp.buf.rename()', opts) map('n', 'xd', 'Telescope lsp_document_diagnostics', opts) map('n', 'xD', 'Telescope lsp_workspace_diagnostics', opts) -- cgit v1.2.3-70-g09d2