From fa443e82e8861c626f86dc81fb342046a7a4404f Mon Sep 17 00:00:00 2001 From: Pablu Date: Wed, 25 Feb 2026 09:05:06 +0100 Subject: [PATCH] Add signature throuh blink and remove lsp_signature --- init.lua | 1 - lua/plugins/blink.lua | 25 ++++++++++++++++++++++++- lua/plugins/lsp_signature.lua | 13 ------------- 3 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 lua/plugins/lsp_signature.lua diff --git a/init.lua b/init.lua index a612f29..e39d340 100644 --- a/init.lua +++ b/init.lua @@ -72,7 +72,6 @@ end, { desc = "Format buffer" }) -- Filesystem vim.keymap.set("n", "e", ":Oil", { desc = "Open file explorer: OIL" }) - -- Neotest local neotest = require("neotest") vim.keymap.set("n", "ts", function() diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 2cccd87..2c424bd 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -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", + [''] = { '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 + } + } + } + } + } } } diff --git a/lua/plugins/lsp_signature.lua b/lua/plugins/lsp_signature.lua deleted file mode 100644 index 6abf6b6..0000000 --- a/lua/plugins/lsp_signature.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "ray-x/lsp_signature.nvim", - event = "InsertEnter", - opts = { - bind = true, - handler_opts = { - border = "rounded" - }, - hint_enable = false - }, - -- or use config - -- config = function(_, opts) require'lsp_signature'.setup({you options}) end -}