Skip to content

Commit

Permalink
fix: fix vue template complete cursor problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaozwn committed Dec 23, 2024
1 parent e20b041 commit ca485c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lua/astrocommunity/completion/blink-cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,19 @@ return {
"Saghen/blink.cmp",
event = { "InsertEnter", "CmdlineEnter" },
version = "0.*",
dependencies = { "rafamadriz/friendly-snippets" },
dependencies = {
"rafamadriz/friendly-snippets",
{
"AstroNvim/astrolsp",
---@type AstroLSPOpts
opts = function(_, opts)
local has_blink, blink = pcall(require, "blink.cmp")
local capabilities =
vim.tbl_deep_extend("force", {}, opts.capabilities or {}, has_blink and blink.get_lsp_capabilities() or {})
return require("astrocore").extend_tbl(opts, { capabilities = capabilities })
end,
},
},
opts_extend = { "sources.default", "sources.cmdline" },
opts = {
-- remember to enable your providers here
Expand Down

0 comments on commit ca485c0

Please sign in to comment.