nvim: lsp: Drop lsp_signature
The signature help sometimes stays open even after moving away from the function. Sometimes it conflicts with the auto completion pop-up making it difficult to see one of the two windows.
This commit is contained in:
parent
cf15054719
commit
a83b07959d
2 changed files with 1 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
local nvim_lsp = require 'lspconfig'
|
||||
local protocol = require 'vim.lsp.protocol'
|
||||
local signature = require 'lsp_signature'
|
||||
local ts_utils = require 'nvim-lsp-ts-utils'
|
||||
local null_ls = require 'null-ls'
|
||||
local util = require 'lspconfig/util'
|
||||
|
@ -91,14 +90,6 @@ local ts_utils_setup = function(client, bufnr, opts)
|
|||
end
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
signature.on_attach({
|
||||
bind = true,
|
||||
hint_enable = true,
|
||||
hint_prefix = "🐼 ",
|
||||
hint_scheme = "String",
|
||||
handler_opts = { border = "single" },
|
||||
decorator = {"`", "`"}
|
||||
})
|
||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
vim.lsp.set_log_level('warn')
|
||||
|
||||
|
@ -119,6 +110,7 @@ local on_attach = function(client, bufnr)
|
|||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gR' , '<cmd>lua vim.lsp.buf.rename()<CR>' , opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'pd' , '<cmd>lua PeekDefinition()<CR>' , opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<Leader>k', '<cmd>lua vim.lsp.buf.hover()<CR>' , opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<Leader>S', '<cmd>lua vim.lsp.buf.signature_help()<CR>' , opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ga' , '<cmd>lua vim.lsp.buf.code_action()<CR>' , opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'v', 'ga' , '<cmd>lua vim.lsp.buf.range_code_action()<CR>', opts)
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ local init = function ()
|
|||
-- LSP
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
'ray-x/lsp_signature.nvim',
|
||||
'kosayoda/nvim-lightbulb',
|
||||
}
|
||||
-- Language support & syntax highlighting
|
||||
|
|
Loading…
Reference in a new issue