From 2671dbb82419678a4d60c6cbe9bcaedd3a9a2d49 Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Wed, 28 Feb 2024 11:40:16 +0800 Subject: [PATCH] confg: cmp-buffer --- lua/aceforeverd/config/cmp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/aceforeverd/config/cmp.lua b/lua/aceforeverd/config/cmp.lua index 87e83ba..2f2ae7f 100644 --- a/lua/aceforeverd/config/cmp.lua +++ b/lua/aceforeverd/config/cmp.lua @@ -83,8 +83,8 @@ function M.setup() local bufs = {} local cur_buf = vim.api.nvim_get_current_buf() local byte_size = vim.api.nvim_buf_get_offset(cur_buf, vim.api.nvim_buf_line_count(cur_buf)) - if byte_size > 256 * 1024 or vim.fn.line('$') > 5000 then - -- stop on files larger than 256k or line number > 5000 + if byte_size > 256 * 1024 or vim.fn.line('$') > 1000 then + -- stop on files larger than 256k or line number > 1000 return {} end