From 285f9d704f44ae1d9cee6183560c6072c10b42ca Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 2 Jun 2022 17:25:43 +0200 Subject: [PATCH] nvimrc: Re-enable lsp_signature --- nvimrc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nvimrc b/nvimrc index 273c5ad..e6c4d27 100644 --- a/nvimrc +++ b/nvimrc @@ -665,7 +665,7 @@ EOF " LSP packadd! nvim-lspconfig " https://github.com/neovim/nvim-lspconfig.git -" packadd! lsp_signature.nvim " https://github.com/ray-x/lsp_signature.nvim.git +packadd! lsp_signature.nvim " https://github.com/ray-x/lsp_signature.nvim.git packadd! fzf-lsp.nvim " https://github.com/gfanto/fzf-lsp.nvim.git packadd! lsp-colors.nvim " https://github.com/folke/lsp-colors.nvim.git @@ -676,8 +676,7 @@ local on_attach = function(client, bufnr) vim.api.nvim_exec([[autocmd User LspDiagnosticsChanged call lightline#update()]], false) local opts = { noremap=true, silent=false } - -- Go to definition is now handled by treesitter, with LSP fallback: - -- vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', 'lua vim.lsp.buf.type_definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', 'lua vim.lsp.buf.type_definition()', opts) @@ -703,9 +702,9 @@ local on_attach = function(client, bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'fci', 'IncomingCalls', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'fco', 'OutgoingCalls', opts) - -- require 'lsp_signature'.on_attach({ - -- hint_enable = false, - -- }) + require 'lsp_signature'.on_attach({ + hint_enable = false, + }) end -- Go