nvim: stop using after

rationale: https://vi.stackexchange.com/a/12735
This commit is contained in:
Primrose 2025-07-08 14:56:01 +02:00
parent dad88aa92f
commit 1bdcd3386e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
13 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,31 @@
require("nvim-treesitter.configs").setup {
ensure_installed = {
-- funny language hehe
"haskell",
"rust",
"nix",
-- vim
"lua",
-- misc
"html",
"scss",
"css",
"json",
},
ignore_install = { "typst", "markdown" },
sync_install = false,
auto_install = true,
highlight = { enable = true },
-- Disable for large files
disable = function(lang, buf)
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
end,
indent = true,
}