mirror of https://github.com/LazyVim/starter
feat(example): disable blink.cmp for tex files
parent
08fae0942e
commit
5c8a971651
|
@ -271,16 +271,14 @@ return {
|
||||||
"flin16/vim-overleaf",
|
"flin16/vim-overleaf",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
opts = {
|
opts = {
|
||||||
enabled = function()
|
enabled = function()
|
||||||
-- Enable if the filetype is Lua
|
--Disable when the filetype is tex
|
||||||
if vim.bo.filetype == "lua" then
|
return vim.bo.filetype ~= "tex"
|
||||||
return true
|
|
||||||
end
|
|
||||||
-- Enable when there is no file ~/.config/nvim-options/blink-disabled
|
-- Enable when there is no file ~/.config/nvim-options/blink-disabled
|
||||||
local path = vim.fn.stdpath("config") .. "/blink-disabled"
|
-- local path = vim.fn.stdpath("config") .. "/blink-disabled"
|
||||||
return not vim.loop.fs_stat(path)
|
-- return not vim.loop.fs_stat(path)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue