2023-07-29 18:15:47 +00:00
|
|
|
return {
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
2023-08-19 17:22:56 +00:00
|
|
|
event = { "BufReadPost", "BufNewFile" },
|
|
|
|
build = ":TSUpdate",
|
2023-07-29 18:15:47 +00:00
|
|
|
opts = {
|
|
|
|
ensure_installed = {
|
2023-07-30 12:35:42 +00:00
|
|
|
-- basics
|
|
|
|
"bash",
|
|
|
|
"json",
|
|
|
|
"markdown",
|
2023-07-30 13:22:10 +00:00
|
|
|
"markdown_inline",
|
2023-07-29 18:15:47 +00:00
|
|
|
"lua",
|
2023-07-30 13:22:10 +00:00
|
|
|
"regex",
|
2023-08-16 11:17:54 +00:00
|
|
|
"vim",
|
2023-07-29 22:50:07 +00:00
|
|
|
|
|
|
|
-- web dev
|
2023-07-29 18:15:47 +00:00
|
|
|
"html",
|
|
|
|
"css",
|
|
|
|
"javascript",
|
|
|
|
"typescript",
|
|
|
|
"svelte",
|
2023-07-29 22:50:07 +00:00
|
|
|
|
|
|
|
-- go
|
2023-07-29 18:15:47 +00:00
|
|
|
"go",
|
2023-07-29 19:09:24 +00:00
|
|
|
"gomod",
|
|
|
|
"gowork",
|
|
|
|
"gosum",
|
2023-07-29 18:15:47 +00:00
|
|
|
},
|
2023-08-19 17:22:56 +00:00
|
|
|
highlight = { enable = true },
|
|
|
|
indent = { enable = true },
|
2023-07-29 18:15:47 +00:00
|
|
|
},
|
2023-08-19 17:22:56 +00:00
|
|
|
config = function(_, opts)
|
|
|
|
require("nvim-treesitter.configs").setup(opts)
|
|
|
|
end,
|
2023-07-29 18:15:47 +00:00
|
|
|
}
|