Skip to content

Commit 2671dbb

Browse files
committed
confg: cmp-buffer
1 parent 54a34b4 commit 2671dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/aceforeverd/config/cmp.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ function M.setup()
8383
local bufs = {}
8484
local cur_buf = vim.api.nvim_get_current_buf()
8585
local byte_size = vim.api.nvim_buf_get_offset(cur_buf, vim.api.nvim_buf_line_count(cur_buf))
86-
if byte_size > 256 * 1024 or vim.fn.line('$') > 5000 then
87-
-- stop on files larger than 256k or line number > 5000
86+
if byte_size > 256 * 1024 or vim.fn.line('$') > 1000 then
87+
-- stop on files larger than 256k or line number > 1000
8888
return {}
8989
end
9090

0 commit comments

Comments
 (0)