From 5c8a97165155f3f99cc89cde1a4cb05589ba3a67 Mon Sep 17 00:00:00 2001 From: flin16 Date: Wed, 4 Jun 2025 20:31:04 -0500 Subject: [PATCH] feat(example): disable blink.cmp for tex files --- lua/plugins/example.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 5e2c0b0..7f2bc88 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -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, }, },