Skip to content

Commit

Permalink
fix(blink-cmp): disable AstroLSP signature help if enabled in `blink.…
Browse files Browse the repository at this point in the history
…cmp`
  • Loading branch information
mehalter committed Jan 7, 2025
1 parent 50de96b commit 94c746e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lua/astrocommunity/completion/blink-cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ return {
{
"AstroNvim/astrolsp",
optional = true,
opts = function(_, opts) opts.capabilities = require("blink.cmp").get_lsp_capabilities(opts.capabilities) end,
opts = function(_, opts)
opts.capabilities = require("blink.cmp").get_lsp_capabilities(opts.capabilities)

-- disable AstroLSP signature help if `blink.cmp` is providing it
local blink_opts = require("astrocore").plugin_opts "blink.cmp"
if vim.tbl_get(blink_opts, "signature", "enabled") == true then
if not opts.features then opts.features = {} end
opts.features.signature_help = false
end
end,
},
{
"folke/lazydev.nvim",
Expand Down

0 comments on commit 94c746e

Please sign in to comment.