mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
parent
dad88aa92f
commit
1bdcd3386e
13 changed files with 0 additions and 0 deletions
|
|
@ -1,31 +0,0 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue