- nvim-treesitter for syntax highlighting
- snippets plugin that uses VS Code style snippets, e.g. vsnip
Using vundle:
Plugin 'KingCol13/stan-nvim'Add to your tree-sitter configuration lua:
-- Set the treesitter parser for stan filetype
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.stan = {
install_info = {
url = "https://github.com/KingCol13/tree-sitter-stan.git",
files = {"src/parser.c"},
branch = "dev",
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
}Then run:
:TSInstall stan- stan filetype detection
- syntax highlighting, identation, folding using nvim-treesitter
- VS Code style snippets