diff options
| author | benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com> | 2024-03-12 07:29:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 14:29:06 +0800 |
| commit | 470402d7f7e6211a44851dcdbd960c9510856058 (patch) | |
| tree | c395fd4bbb4384a32ad2fddddd9de42c2f95092d /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar.gz nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar.bz2 nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar.lz nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar.xz nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.tar.zst nvim-lspconfig-470402d7f7e6211a44851dcdbd960c9510856058.zip | |
feat: add jinja-lsp (#3069)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/jinja_lsp.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/jinja_lsp.lua b/lua/lspconfig/server_configurations/jinja_lsp.lua new file mode 100644 index 00000000..e372ee9b --- /dev/null +++ b/lua/lspconfig/server_configurations/jinja_lsp.lua @@ -0,0 +1,28 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + name = 'jinja_lsp', + cmd = { 'jinja-lsp' }, + filetypes = { 'jinja' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +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', + }, +} +``` +]], + }, +} |
