Add signature throuh blink and remove lsp_signature

This commit is contained in:
Pablu
2026-02-25 09:05:06 +01:00
parent 367f5dcc9a
commit fa443e82e8
3 changed files with 24 additions and 15 deletions

View File

@@ -2,7 +2,30 @@ return {
"saghen/blink.cmp",
dependecies = { "rafamadriz/friendly-snippets" },
version = "1.*",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = { preset = "enter" }
keymap = {
preset = "enter",
['<C-k>'] = { 'show_signature', 'hide_signature', 'fallback' },
},
appearance = {
nerd_font_variant = "mono"
},
signature = {
enabled = true
},
completion = {
menu = {
draw = {
padding = { 0, 1 }, -- padding only on right side
components = {
kind_icon = {
text = function(ctx) return ' ' .. ctx.kind_icon .. ctx.icon_gap .. ' ' end
}
}
}
}
}
}
}