feat(nvim): add lsp signature plugin
This commit is contained in:
parent
4322977115
commit
6ae954d3c6
2 changed files with 8 additions and 0 deletions
|
@ -131,6 +131,7 @@ with builtins;
|
|||
event = [ "BufRead" "BufNewFile" ];
|
||||
conf = readFile ./nvim-lspconfig.lua;
|
||||
dependencies = [
|
||||
{ plugin = lsp_signature-nvim; }
|
||||
{
|
||||
plugin = null-ls-nvim;
|
||||
conf = readFile ./null-ls-nvim.lua;
|
||||
|
|
|
@ -96,6 +96,13 @@ local on_attach_def = function(client, bufnr)
|
|||
vim.lsp.inlay_hint(bufnr, true)
|
||||
end, timeout)
|
||||
end
|
||||
|
||||
require("lsp_signature").on_attach({
|
||||
bind = true, -- This is mandatory, otherwise border config won't get registered.
|
||||
handler_opts = {
|
||||
border = "rounded",
|
||||
},
|
||||
}, bufnr)
|
||||
end
|
||||
|
||||
local lspconfig_default_options = {
|
||||
|
|
Loading…
Reference in a new issue