Skip to content

Commit

Permalink
confg: cmp-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Feb 28, 2024
1 parent 54a34b4 commit 2671dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/aceforeverd/config/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2671dbb

Please sign in to comment.