Skip to content

Commit

Permalink
docs: add comment about possible performance boost
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibrock committed Jun 9, 2024
1 parent d4bacaa commit 677e92b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/spellwarn/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local function get_bufs_loaded()
return bufs_loaded
end

-- PERF: try wrapping this with a function to make it run asynchronously?
function M.update_diagnostics(opts, bufnr)
if opts.max_file_size and vim.api.nvim_buf_line_count(bufnr) > opts.max_file_size then return end
local ft = vim.fn.getbufvar(bufnr, "&filetype")
Expand Down

0 comments on commit 677e92b

Please sign in to comment.