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