feat(nvim): add lsp signature plugin

This commit is contained in:
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" ]; 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;

View file

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