From 03c791b8d64a4877df495ee930535328ebd4df09 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Tue, 26 Nov 2024 17:28:03 +0000 Subject: [PATCH] fix lightbulb --- vim/.vim/lua/plugins/cmp.lua | 20 -------------------- vim/.vim/lua/plugins/lsp.lua | 1 + 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/vim/.vim/lua/plugins/cmp.lua b/vim/.vim/lua/plugins/cmp.lua index 526729b..49e88cf 100644 --- a/vim/.vim/lua/plugins/cmp.lua +++ b/vim/.vim/lua/plugins/cmp.lua @@ -56,26 +56,6 @@ return { local lspkind = require("lspkind") lspkind.init() - vim.api.nvim_create_autocmd("FileType", { - callback = function(args) - local max_filesize = 100 * 1024 -- 100 KB - local fname = vim.api.nvim_buf_get_name(args.buf) - local ok, stats = pcall(vim.loop.fs_stat, fname) - if ok and stats and stats.size > max_filesize then - vim.schedule(function() - vim.notify( - string.format( - "Disabling nvim-cmp for buffer. File %s exceeds maximum configured size.", - fname - ) - ) - end) - require("cmp").setup.buffer({ - enabled = false, - }) - end - end, - }) cmp.setup.filetype("txt", { enabled = false, diff --git a/vim/.vim/lua/plugins/lsp.lua b/vim/.vim/lua/plugins/lsp.lua index f8c7975..6886160 100644 --- a/vim/.vim/lua/plugins/lsp.lua +++ b/vim/.vim/lua/plugins/lsp.lua @@ -21,6 +21,7 @@ return { }, { "kosayoda/nvim-lightbulb", + commit = "1cae7b7153ae98dcf1b11173a443ac1b6d8e3d49", event = { "LspAttach" }, opts = { autocmd = { enabled = true },