We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a34b4 commit 2671dbbCopy full SHA for 2671dbb
lua/aceforeverd/config/cmp.lua
@@ -83,8 +83,8 @@ function M.setup()
83
local bufs = {}
84
local cur_buf = vim.api.nvim_get_current_buf()
85
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
+ if byte_size > 256 * 1024 or vim.fn.line('$') > 1000 then
+ -- stop on files larger than 256k or line number > 1000
88
return {}
89
end
90
0 commit comments