Skip to content

Commit 94c746e

Browse files
committed
fix(blink-cmp): disable AstroLSP signature help if enabled in blink.cmp
1 parent 50de96b commit 94c746e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lua/astrocommunity/completion/blink-cmp/init.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,16 @@ return {
139139
{
140140
"AstroNvim/astrolsp",
141141
optional = true,
142-
opts = function(_, opts) opts.capabilities = require("blink.cmp").get_lsp_capabilities(opts.capabilities) end,
142+
opts = function(_, opts)
143+
opts.capabilities = require("blink.cmp").get_lsp_capabilities(opts.capabilities)
144+
145+
-- disable AstroLSP signature help if `blink.cmp` is providing it
146+
local blink_opts = require("astrocore").plugin_opts "blink.cmp"
147+
if vim.tbl_get(blink_opts, "signature", "enabled") == true then
148+
if not opts.features then opts.features = {} end
149+
opts.features.signature_help = false
150+
end
151+
end,
143152
},
144153
{
145154
"folke/lazydev.nvim",

0 commit comments

Comments
 (0)