We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a7b2b9 commit e5a8874Copy full SHA for e5a8874
lua/debugprint/highlight.lua
@@ -27,7 +27,12 @@ M.setup_highlight = function(print_tag)
27
28
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
29
callback = function(opts)
30
- setup_highlight_buffer(print_tag, opts.buf)
+ -- Automatically ignore 'bigfiles' as detected by snacks' bigfile
31
+ -- support:
32
+ -- https://github.com/folke/snacks.nvim/blob/main/docs/bigfile.md
33
+ if vim.bo[opts.buf].filetype ~= "bigfile" then
34
+ setup_highlight_buffer(print_tag, opts.buf)
35
+ end
36
end,
37
})
38
end
0 commit comments