Django template LSP
Project description
Django template LSP
A simple Django template LSP for completions that has support for:
- Custom
tags
andfilters
- templates for
extends
andincludes
- load tag
- static files
- urls
Support (tested)
- Python: 3.10, 3.11, 3.12
- Django: 3.2, 4.2, 5.0
Install
pip install django-template-lsp
Options
docker_compose_file
(string) default: "docker-compose.yml"docker_compose_service
(string) default: "django"django_settings_module
(string) default: ""
Editors
Helix
In your global or project languages.toml
add the following
[language-server.djlsp]
command = "djlsp"
[[language]]
name = "html"
language-servers = [ "vscode-html-language-server", "djlsp" ]
Project settings .helix/languages.toml
:
[language-server.djlsp.config]
django_settings_modules="<your.settings.module>"
Neovim
In your lspconfig add the following
require'lspconfig'.djlsp.setup{
cmd = { "<path-to-djlsp>" },
init_options = {
djlsp = {
django_settings_module = "<your.settings.module>"
docker_compose_file = "docker-compose.yml",
docker_compose_service = "django"
}
}
}
VSCode
To use the Django template LSP with VSCode read the following readme
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_template_lsp-0.3.0.tar.gz
(23.9 kB
view hashes)
Built Distribution
Close
Hashes for django_template_lsp-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eadfde46710dcb59770c1957b9373c08f0bcea4f6e9d164aa49213e5b939b0c |
|
MD5 | 5e27646b481fc8f992e56d4f034f1af0 |
|
BLAKE2b-256 | 460219518e6866491eacb1a1888271dfbcb45ecfb78812d45eab84d0e4d911e8 |
Close
Hashes for django_template_lsp-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66cf838cb2dc9caef73640c776d35c95dc7ac2ddf6705f02769c7da7bf0101b6 |
|
MD5 | c5df9bec59a2a67c21f93660fe42472d |
|
BLAKE2b-256 | 3c8fa85eaaab25488667a28b73e11e325bc7b63db76866121ed1925b1168de69 |