feat(treesitter): update template to configure treesitter through AstroCore
This commit is contained in:
parent
61d2e06a31
commit
4f2ccf598d
|
|
@ -1,19 +1,30 @@
|
||||||
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
-- Customize Treesitter
|
-- Customize Treesitter
|
||||||
|
-- --------------------
|
||||||
|
-- Treesitter customizations are handled with AstroCore
|
||||||
|
-- as nvim-treesitter simply provides a download utility for parsers
|
||||||
|
|
||||||
---@type LazySpec
|
---@type LazySpec
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"AstroNvim/astrocore",
|
||||||
|
---@type AstroCoreOpts
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
treesitter = {
|
||||||
"vue",
|
highlight = true, -- enable/disable treesitter based highlighting
|
||||||
"html",
|
indent = true, -- enable/disable treesitter based indentation
|
||||||
"css",
|
auto_install = true, -- enable/disable automatic installation of detected languages
|
||||||
"javascript",
|
ensure_installed = {
|
||||||
"typescript",
|
"lua",
|
||||||
"tsx",
|
"vim",
|
||||||
-- add more arguments for adding more treesitter parsers
|
"vue",
|
||||||
|
"html",
|
||||||
|
"css",
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"tsx",
|
||||||
|
-- add more arguments for adding more treesitter parsers
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue