diff options
Diffstat (limited to 'lua/tjk/plugins/treesitter.lua')
-rw-r--r-- | lua/tjk/plugins/treesitter.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/tjk/plugins/treesitter.lua b/lua/tjk/plugins/treesitter.lua new file mode 100644 index 0000000..925fb13 --- /dev/null +++ b/lua/tjk/plugins/treesitter.lua @@ -0,0 +1,32 @@ +return { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + dependencies = { + --{ + -- "nvim-treesitter/playground", -- inspect treesitter structure + -- cmd = "TSPlaygroundToggle" + --}, + "HiPhish/rainbow-delimiters.nvim", -- colored delimiters per scope level + { + "windwp/nvim-ts-autotag", -- close tags in html/xml type languages + opts = { + per_filetype = { + ["html"] = { + enable_close = true + } + } + } + }, + }, + config = function() + local configs = require("nvim-treesitter.configs") + configs.setup({ + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "comment", + "javascript", "html", "css", "scss", "python", "php" }, + auto_install = true, -- install available parsers when entering new buffers + highlight = { enable = true, disable = { "yaml", "bash", "latex" } }, + indent = { enable = true, disable = { "yaml" } }, + --playground = { enable = true }, -- treesitter debug + }) + end +} |