refactored plugins and configurations
This commit is contained in:
66
lua/plugins/treesitter.lua
Normal file
66
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,66 @@
|
||||
-- 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",
|
||||
|
||||
-- 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 },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user