diff options
| author | Ruben Hesselink <63238650+rubenhesselink@users.noreply.github.com> | 2024-06-14 08:57:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 14:57:44 +0800 |
| commit | 8c7cbc25f9f175e042399fc68663ce01fafc9aa9 (patch) | |
| tree | 9b8f49c873c33ccdf18e529b5c7dedc7024d4522 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar.gz nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar.bz2 nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar.lz nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar.xz nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.tar.zst nvim-lspconfig-8c7cbc25f9f175e042399fc68663ce01fafc9aa9.zip | |
feat: add django-template-lsp support (#3203)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/djlsp.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/djlsp.lua b/lua/lspconfig/server_configurations/djlsp.lua new file mode 100644 index 00000000..181cb030 --- /dev/null +++ b/lua/lspconfig/server_configurations/djlsp.lua @@ -0,0 +1,17 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'djlsp' }, + filetypes = { 'html', 'htmldjango' }, + root_dir = util.find_git_ancestor, + settings = {}, + }, + docs = { + description = [[ + https://github.com/fourdigits/django-template-lsp + + `djlsp`, a language server for Django templates. + ]], + }, +} |
