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.5.0.tar.gz
(25.2 kB
view hashes)
Built Distribution
Close
Hashes for django_template_lsp-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e0c073f4ecd79a07ef712867d9557b248809cb92d194107a417b86934e58db |
|
MD5 | 06e83104532a52b3aad42e16bffeb3b8 |
|
BLAKE2b-256 | b0fca1af8a7f74df1e878f4c3d350fd00273b2927a4b00bcdc0ccdea1ddb67fb |
Close
Hashes for django_template_lsp-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb6ed3070da8b29ec2126f8dc59bcabaf7e199860959dcf051cbfc3666f0177 |
|
MD5 | 039effb899967e5fa8e7e05396960d8f |
|
BLAKE2b-256 | dae2487275162b48064456768769a15c243bd867f10cac4373b88edae9516f29 |