Files
nvim-config/lua/plugins/treesitter.lua

70 lines
1.1 KiB
Lua

-- Treesitter parsers
-- LazyVim's nvim-treesitter spec uses opts_extend = { "ensure_installed" }
-- so this list is merged with the parsers added by language extras.
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
-- Go
"go",
"gomod",
"gowork",
"gosum",
-- Lua
"lua",
"luadoc",
-- Typescript / Javascript
"typescript",
"javascript",
"tsx",
-- Web
"html",
"css",
-- Data
"json",
"jsonc",
"yaml",
"toml",
-- Markdown / docs
"markdown",
"markdown_inline",
-- Zig
"zig",
-- Build / config
"ninja",
"sql",
"make",
-- Editor / shell
"vim",
"vimdoc",
"bash",
"regex",
-- Git
"diff",
"gitcommit",
"git_rebase",
-- Containers
"dockerfile",
-- Typesetting
"latex",
"typst",
},
highlight = { enable = true },
indent = { enable = true },
},
},
}