aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-03-12 06:29:20 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-03-12 06:29:20 +0000
commit4bdd3800b4148f670c6cf55ef65f490148eeb550 (patch)
treeb72259820389111818d3aa317e5f3e51c624fdc4
parentfeat: add jinja-lsp (#3069) (diff)
downloadnvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar.gz
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar.bz2
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar.lz
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar.xz
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.tar.zst
nvim-lspconfig-4bdd3800b4148f670c6cf55ef65f490148eeb550.zip
docs: update server_configurations.md
skip-checks: true
-rw-r--r--doc/server_configurations.md48
-rw-r--r--doc/server_configurations.txt48
2 files changed, 96 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index c709beaa..af2a8f14 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -123,6 +123,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [java_language_server](#java_language_server)
- [jdtls](#jdtls)
- [jedi_language_server](#jedi_language_server)
+- [jinja_lsp](#jinja_lsp)
- [jqls](#jqls)
- [jsonls](#jsonls)
- [jsonnet_ls](#jsonnet_ls)
@@ -5583,6 +5584,53 @@ require'lspconfig'.jedi_language_server.setup{}
```
+## jinja_lsp
+
+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',
+ },
+}
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.jinja_lsp.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "jinja-lsp" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "jinja" }
+ ```
+ - `name` :
+ ```lua
+ "jinja_lsp"
+ ```
+ - `root_dir` :
+ ```lua
+ see source file
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## jqls
https://github.com/wader/jq-lsp
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index c709beaa..af2a8f14 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -123,6 +123,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [java_language_server](#java_language_server)
- [jdtls](#jdtls)
- [jedi_language_server](#jedi_language_server)
+- [jinja_lsp](#jinja_lsp)
- [jqls](#jqls)
- [jsonls](#jsonls)
- [jsonnet_ls](#jsonnet_ls)
@@ -5583,6 +5584,53 @@ require'lspconfig'.jedi_language_server.setup{}
```
+## jinja_lsp
+
+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',
+ },
+}
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.jinja_lsp.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "jinja-lsp" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "jinja" }
+ ```
+ - `name` :
+ ```lua
+ "jinja_lsp"
+ ```
+ - `root_dir` :
+ ```lua
+ see source file
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## jqls
https://github.com/wader/jq-lsp