mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
31 lines
720 B
Lua
31 lines
720 B
Lua
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,
|
|
}
|