2023-05-14 13:40:39 +02:00
|
|
|
---@type LazyPluginSpec[]
|
2023-03-12 02:43:24 +01:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
build = function()
|
2023-05-18 15:21:58 +02:00
|
|
|
require("nvim-treesitter.install").update()
|
2023-03-12 02:43:24 +01:00
|
|
|
end,
|
|
|
|
config = function()
|
2023-05-18 15:21:58 +02:00
|
|
|
require("nvim-treesitter.configs").setup({
|
2023-03-12 02:43:24 +01:00
|
|
|
auto_install = true,
|
|
|
|
ignore_install = {
|
|
|
|
"phpdoc",
|
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
rainbow = {
|
|
|
|
enable = true,
|
|
|
|
extended_mode = true,
|
|
|
|
max_file_lines = 8192,
|
|
|
|
},
|
|
|
|
ensure_installed = {
|
|
|
|
"bash",
|
|
|
|
"css",
|
|
|
|
"dockerfile",
|
|
|
|
"go",
|
|
|
|
"html",
|
|
|
|
"javascript",
|
|
|
|
"json",
|
|
|
|
"lua",
|
|
|
|
"markdown",
|
|
|
|
"python",
|
|
|
|
"regex",
|
|
|
|
"rust",
|
|
|
|
"scss",
|
|
|
|
"toml",
|
|
|
|
"tsx",
|
|
|
|
"typescript",
|
|
|
|
"yaml",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
vim.o.foldmethod = "expr"
|
|
|
|
vim.o.foldexpr = "nvim_treesitter#foldexpr()"
|
|
|
|
vim.o.foldenable = false
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
"nvim-treesitter/playground",
|
2023-05-31 21:47:49 +02:00
|
|
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
2023-03-12 02:43:24 +01:00
|
|
|
"windwp/nvim-ts-autotag",
|
2023-05-18 15:21:58 +02:00
|
|
|
"hiphish/nvim-ts-rainbow2",
|
2023-03-12 02:43:24 +01:00
|
|
|
|
|
|
|
-- not treesitter, but close enough
|
|
|
|
{
|
|
|
|
"wuelnerdotexe/vim-astro",
|
|
|
|
config = function()
|
|
|
|
vim.g.astro_typescript = "enable"
|
|
|
|
end,
|
|
|
|
},
|
2023-05-23 23:56:04 +02:00
|
|
|
"towolf/vim-helm",
|
|
|
|
"NoahTheDuke/vim-just",
|
2023-03-12 02:43:24 +01:00
|
|
|
}
|