Setting up Neovim for Stan in 2026

Inspired by @WardBrian’s recent similar post for Emacs, I wanted to highlight that writing Stan code in Neovim is better than it has ever been!

The screenshot below shows off some of the features;

This is made possibly now primarily through:

  • A new stan.nvim Neovim plugin, which configures filetype detection for .stan files, configures tree-sitter-stan with nvim-treesitter, and implements syntax highlighting.
  • The Stan language server, which has now been added to the Mason neovim package manager and is installed via :MasonInstall stan-language-server.

Big kudos to @jkouros and @WardBrian for all the foundational work on the language server and tree-sitter parser that make this possible!

I’m sure there are some bugs in the stan.nvim plugin, so if you find any please raise an issue.

1 Like