diff options
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..88b699b --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,53 @@ +-- return { +-- "nvim-treesitter/nvim-treesitter", +-- config = function() +-- require("nvim-treesitter.configs").setup({ +-- ensure_installed = {"c", "vimdoc", "markdown", "jsonc", "lua"}, +-- sync_install = false, +-- highlight = { enable = true }, +-- indent = { enable = true }, +-- }) +-- end, +-- } + +return { + "nvim-treesitter/nvim-treesitter", + opts = { + highlight = { enable = true }, + indent = { enable = true }, + ensure_installed = { + "bash", + "c", + "dart", + "diff", + "go", + "html", + "javascript", + "jsdoc", + "json", + "jsonc", + "lua", + "luadoc", + "luap", + "make", + "markdown", + "markdown_inline", + "printf", + "python", + "query", + "regex", + "rust", + "toml", + "tsx", + "typescript", + "vim", + "vimdoc", + "xml", + "yaml", + }, + }, + ---@param opts TSConfig + config = function(_, opts) + require("nvim-treesitter.configs").setup(opts) + end, +} |
