feat(example): disable blink.cmp for tex files

pull/128/head
flin16 2025-06-04 20:31:04 -05:00
parent 08fae0942e
commit 5c8a971651
1 changed files with 5 additions and 7 deletions

View File

@ -271,16 +271,14 @@ return {
"flin16/vim-overleaf",
},
{
"Saghen/blink.cmp",
"saghen/blink.cmp",
opts = {
enabled = function()
-- Enable if the filetype is Lua
if vim.bo.filetype == "lua" then
return true
end
--Disable when the filetype is tex
return vim.bo.filetype ~= "tex"
-- Enable when there is no file ~/.config/nvim-options/blink-disabled
local path = vim.fn.stdpath("config") .. "/blink-disabled"
return not vim.loop.fs_stat(path)
-- local path = vim.fn.stdpath("config") .. "/blink-disabled"
-- return not vim.loop.fs_stat(path)
end,
},
},