feat(nvim): add lsp signature plugin

dev-docs
Moritz Böhme 2023-09-06 17:48:54 +02:00
parent 4322977115
commit 6ae954d3c6
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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 = {