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