nvimrc: Re-enable lsp_signature

This commit is contained in:
Rob Watson 2022-06-02 17:25:43 +02:00
parent d45f107a95
commit 285f9d704f
1 changed files with 5 additions and 6 deletions

11
nvimrc
View File

@ -665,7 +665,7 @@ EOF
" LSP " LSP
packadd! nvim-lspconfig " https://github.com/neovim/nvim-lspconfig.git 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! fzf-lsp.nvim " https://github.com/gfanto/fzf-lsp.nvim.git
packadd! lsp-colors.nvim " https://github.com/folke/lsp-colors.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) vim.api.nvim_exec([[autocmd User LspDiagnosticsChanged call lightline#update()]], false)
local opts = { noremap=true, silent=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', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<Cmd>lua vim.lsp.buf.type_definition()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<Cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gD', '<Cmd>lua vim.lsp.buf.type_definition()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gD', '<Cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
@ -703,9 +702,9 @@ local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>fci', '<Cmd>IncomingCalls<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>fci', '<Cmd>IncomingCalls<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>fco', '<Cmd>OutgoingCalls<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>fco', '<Cmd>OutgoingCalls<CR>', opts)
-- require 'lsp_signature'.on_attach({ require 'lsp_signature'.on_attach({
-- hint_enable = false, hint_enable = false,
-- }) })
end end
-- Go -- Go