aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/jinja_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/jinja_lsp.lua')
-rw-r--r--lsp/jinja_lsp.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lsp/jinja_lsp.lua b/lsp/jinja_lsp.lua
new file mode 100644
index 00000000..20d238ce
--- /dev/null
+++ b/lsp/jinja_lsp.lua
@@ -0,0 +1,21 @@
+---@brief
+---
+---jinja-lsp enhances minijinja development experience by providing Helix/Nvim users with advanced features such as autocomplete, syntax highlighting, hover, goto definition, code actions and linting.
+--
+-- The file types are not detected automatically, you can register them manually (see below) or override the filetypes:
+--
+-- ```lua
+-- vim.filetype.add {
+-- extension = {
+-- jinja = 'jinja',
+-- jinja2 = 'jinja',
+-- j2 = 'jinja',
+-- },
+-- }
+-- ```
+return {
+ name = 'jinja_lsp',
+ cmd = { 'jinja-lsp' },
+ filetypes = { 'jinja' },
+ root_markers = { '.git' },
+}