gemini fix
This commit is contained in:
parent
bda1f54de9
commit
ffd426471d
3 changed files with 53 additions and 21 deletions
|
|
@ -3,14 +3,26 @@ 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
|
||||
-- Fallback size if the function doesn't intercept it
|
||||
filesize = 2,
|
||||
-- Use a detection function to unconditionally catch generated files
|
||||
pattern = function(bufnr, _)
|
||||
local buf_name = vim.api.nvim_buf_get_name(bufnr)
|
||||
if buf_name:match("%.g%.dart$") or buf_name:match("hive_registrar%.g%.dart$") then
|
||||
-- 1. Hard-disable Autopairs for this specific buffer
|
||||
vim.api.nvim_buf_set_var(bufnr, "autopairs_enabled", false)
|
||||
|
||||
-- 2. Prevent the Copilot server from attaching and tracking
|
||||
vim.api.nvim_buf_set_var(bufnr, "copilot_enabled", 0)
|
||||
return true
|
||||
end
|
||||
end,
|
||||
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
|
||||
"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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue