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