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.

6 Likes

As a neovim user, this is amazing! I really appreciate these quality of life improvements, and I hope that people are motivated to work on similar projects.

3 Likes

Oh, amazing! The language server making its way into Mason is such a benefit. Huge thanks to everyone who’s worked on these!

1 Like

Great to see the stan language server in Mason! Thanks to all who contributed.

1 Like