summaryrefslogtreecommitdiff
path: root/lua/tjk
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-10-16 10:38:32 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-10-16 10:38:32 -0500
commit034327bc6aef7cf02a44e14995f32b507b338368 (patch)
treec3e97e2ea8b6d9d7c44a68c48b31d17e7dc9cf26 /lua/tjk
parent6a0249fdd40ccd48df5c1055f4fb4a17f619820e (diff)
downloadnvim-master.tar.xz
nvim-master.zip
add lsp for jinja, sass, typescript. tree-sitter plugin for jinja2 syntaxHEADmaster
Diffstat (limited to 'lua/tjk')
-rw-r--r--lua/tjk/plugins/lsp.lua3
-rw-r--r--lua/tjk/plugins/treesitter.lua3
2 files changed, 5 insertions, 1 deletions
diff --git a/lua/tjk/plugins/lsp.lua b/lua/tjk/plugins/lsp.lua
index 4caf7c0..1c2eeb7 100644
--- a/lua/tjk/plugins/lsp.lua
+++ b/lua/tjk/plugins/lsp.lua
@@ -5,10 +5,13 @@ return {
"cssls",
"eslint",
"html",
+ "jinja_lsp",
"jsonls",
"pylsp",
+ "somesass_ls",
"svelte",
"tailwindcss",
+ "ts_ls"
})
end
}
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" } },