summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tjk/plugins/treesitter.lua')
-rw-r--r--lua/tjk/plugins/treesitter.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/tjk/plugins/treesitter.lua b/lua/tjk/plugins/treesitter.lua
index 54a042f..a73d6e7 100644
--- a/lua/tjk/plugins/treesitter.lua
+++ b/lua/tjk/plugins/treesitter.lua
@@ -6,6 +6,7 @@ return {
-- "nvim-treesitter/playground", -- inspect treesitter structure
-- cmd = "TSPlaygroundToggle"
--},
+ "geigerzaehler/tree-sitter-jinja2", -- adds filetype for htmljinja, not recognized by ts by default. Requires gcc in path
"HiPhish/rainbow-delimiters.nvim", -- colored delimiters per scope level
{
"windwp/nvim-ts-autotag", -- close tags in html/xml type languages
@@ -20,7 +21,7 @@ return {
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "comment",
- "javascript", "html", "css", "scss", "python", "php" },
+ "javascript", "jinja2", "html", "css", "scss", "python", "php" },
auto_install = true, -- install available parsers when entering new buffers
highlight = { enable = true, disable = { "yaml", "dockerfile" } },
indent = { enable = true, disable = { "yaml" } },