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