Skip to content

Commit 677e92b

Browse files
committed
docs: add comment about possible performance boost
1 parent d4bacaa commit 677e92b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/spellwarn/diagnostics.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ local function get_bufs_loaded()
1111
return bufs_loaded
1212
end
1313

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

0 commit comments

Comments
 (0)