nvim-treesitter: format

This commit is contained in:
Guanran Wang 2024-02-23 16:38:41 +08:00
parent 96af04e40d
commit 1b2784874b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,24 +1,16 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
init = function()
require("nvim-treesitter.configs").setup({
-- A list of parser names, or "all"
opts = {
ensure_installed = {
"nix",
"lua",
"vim",
},
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
sync_install = true,
auto_install = true,
highlight = {
enable = true,
highlight = { enable = true },
indent = { enable = true },
},
indent = {
enable = true,
},
})
end,
}