Add signature help plugin
This commit is contained in:
parent
a8e4f7a113
commit
3a1ab705cb
2 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,7 @@ local on_attach = function(client, bufnr)
|
|||
map("n", "<leader>ae", function() vim.diagnostic.setqflist({ severity = "E" }) end, opts)
|
||||
|
||||
vim.cmd [[autocmd BufEnter,CursorHold,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
|
||||
vim.cmd [[autocmd CursorHoldI * silent! lua vim.lsp.buf.signature_help()]]
|
||||
-- vim.cmd [[autocmd CursorHoldI * silent! lua vim.lsp.buf.signature_help()]]
|
||||
vim.cmd [[autocmd CursorHold * lua vim.diagnostic.open_float({max_width = 100, focusable = false})]]
|
||||
end
|
||||
|
||||
|
@ -67,3 +67,5 @@ vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
|
|||
}
|
||||
)
|
||||
|
||||
local signature_help_cfg = {}
|
||||
require "lsp_signature".setup(signature_help_cfg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue