1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-29 04:53:44 +00:00

Add signature config

This commit is contained in:
Mo 2022-05-11 14:17:34 +02:00
parent 67942f909f
commit 006a6cae26

View file

@ -18,11 +18,20 @@ local function format_on_save(client)
end
local lsp_signature = require("lsp_signature")
lsp_signature_config = {
bind = true,
doc_lines = 0,
hint_prefix = "💡 ",
handler_opts = {
border = "single",
},
transparency = 10,
}
lspconfig["pylsp"].setup({
capabilities = capabilities,
on_attach = function(client, bufnr)
lsp_signature.on_attach()
lsp_signature.on_attach(lsp_signature_config)
-- Disable formatting
client.resolved_capabilities.document_formatting = false
@ -31,7 +40,7 @@ lspconfig["pylsp"].setup({
})
local function on_attach_with_formatting(client, bufnr)
lsp_signature.on_attach()
lsp_signature.on_attach(lsp_signature_config)
format_on_save(client)
end