RepositoryRustRSSerbia
uros-5

uros-5/jinja-lsp

Language Server for jinja

177stars
5forks
6issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: jinja

#1 Repository of the week

1
TINIX TRENDING·Topic: minijinja

#1 Repository of the week

2
TINIX TRENDING·Topic: jinja2

#2 Repository of the week

banner

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.

crates.io visualstudio.com

Installation

cargo install jinja-lsp

or

download binary from releases page.

Features

Autocomplete

Intelligent suggestions for variables in current template, as well as variables, templates and filters defined on backend side.

Linting

Highlights errors and potential bugs in your jinja templates.

Hover Preview

See the complete filter or variable description by hovering over it.

Code Actions

It's recommended to reset variables on server in case you rename/delete file.

Goto Definition

Quickly jump to definition. Works for Rust identifiers as well.

https://github.com/uros-5/jinja-lsp/assets/59397844/015e47b4-b6f6-47c0-8504-5ce79ebafb00

Snippets

Document symbols

Configuration

Language server configuration(all fields are optional)

{ "templates": "./TEMPLATES_DIR", "backend": ["./BACKEND_DIR"], "lang": "rust"}

Helix configuration

[language-server.jinja-lsp]
command = "jinja-lsp"
config = { templates = "./templates", backend = ["./src"], lang = "rust"}
timeout = 5

[[language]]
name = "jinja"
language-servers = ["jinja-lsp"]

Neovim configuration

init.lua, I use kickstarter.nvim, it uses Mason.nvim for installing language servers.


-- if you want to debug
vim.lsp.set_log_level("debug")


require('lazy').setup(
  -- your other configs
  {
    -- Main LSP Configuration
    'neovim/nvim-lspconfig',
    dependencies = {
      -- dependencies
    },
    config = function() {
      -- keybindings etc.

      vim.filetype.add {
        extension = {
          jinja = 'jinja',
          jinja2 = 'jinja',
          j2 = 'jinja',
          py = 'python'
        },
      }
      local servers = {
        jinja_lsp = {
          filetypes = { 'jinja', 'rust', 'python' },
        },
        -- other servers        
      }
    end
  }
)

Adding custom template extensions:

template_extensions = ["j2", "tex"]

Custom jinja filters

filters = ["./example/custom-filters"]
**filter_name**

markdown description

You can also write configuration in: pyproject.toml, Cargo.toml, jinja-lsp.toml.

Python

[tool.jinja-lsp]
templates = "./templates"
backend = ["./src"]

Rust

[metadata.jinja-lsp]
templates = "./templates"
backend = ["./src"]

Supported languages: Python, Rust

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
mitsuhiko/minijinja

MiniJinja is a powerful but minimal dependency template engine for Rust compatible with Jinja/Jinja2

2.8k
Nov 29, 2026
RepositoryRust
iwe-org/iwe

Markdown knowledge graph — LSP for your editor, CLI + MCP memory for your AI agents

1.9k
Dec 1, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryTypeScript
neoclide/coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

25.1k
Nov 25, 2026
RepositoryLua
neovim/nvim-lspconfig

Quickstart configs for Nvim LSP

14.0k
Dec 1, 2026
RepositoryPython
pallets/jinja

A very fast and expressive template engine.

11.8k
Jun 14, 2025
RepositoryLua
jdhao/nvim-config

A modern Neovim configuration with full battery for Python, Lua, golang, Markdown, LaTeX, and more...

4.4k
Dec 1, 2026
RepositoryLua
mrcjkb/rustaceanvim

🦀 Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim

3.2k
Nov 30, 2026
RepositoryLua
nvim-flutter/flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

1.4k
Nov 22, 2026