Skip to content

Commit

Permalink
fix: a temp fix for using blink
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTheMico committed Dec 29, 2024
1 parent 14e0427 commit a28e912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/obsidian/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ config.CompletionOpts = {}
---@return obsidian.config.CompletionOpts
config.CompletionOpts.default = function()
local has_nvim_cmp, _ = pcall(require, "cmp")
local has_blink_cmp, _ = pcall(require, "blink.cmp")
if has_blink_cmp then
has_nvim_cmp = false
end
return {
nvim_cmp = has_nvim_cmp,
min_chars = 2,
Expand Down

0 comments on commit a28e912

Please sign in to comment.