Files
system-config/home-manager/features/config/neovim/lua/plugins/treesitter.lua

38 lines
959 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
-- Make sure these are installed
ensure_installed = {
-- Programming languages
"javascript",
"typescript",
"haskell",
"rust",
"lua",
"bash",
-- Config files
"vim",
"hyprlang",
"toml",
"yaml",
"dockerfile",
-- Other
"markdown",
},
-- Use async install
sync_install = false,
-- Install missing parsers when entering a buffer.
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
})
end
}