add bigfiles.nvim plugin to stop slowdown from hive integration

This commit is contained in:
yaso 2026-06-25 14:13:53 +02:00
parent 2e1dee9fdf
commit 60e4e91a33
2 changed files with 33 additions and 12 deletions

20
lua/plugins/big_files.lua Normal file
View file

@ -0,0 +1,20 @@
return {
{
"LunarVim/bigfile.nvim",
event = { "BufReadPre", "BufNewFile" },
opts = {
filesize = 0.01, -- 10 KiB (your hive_adapters.g.dart sits right around here)
pattern = { "*.g.dart", "hive_registrar.g.dart" }, -- Force override on generated Dart files
features = {
"indent_blankline", -- Disables heavy indentation lines
"lsp", -- Strips LSP diagnostics and semantic tokens for this buffer
"treesitter", -- Completely disables treesitter parsing/highlighting
"syntax", -- Drops standard heavy syntax engines
"matchparen", -- Stops Neovim from trying to match deeply nested brackets
},
},
config = function(_, opts)
require("bigfile").setup(opts)
end,
},
}