mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-30 22:23:44 +00:00
Add signature config
This commit is contained in:
parent
67942f909f
commit
006a6cae26
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue