Skip to content

Neovim extension for Stan including tree-sitter queries and snipepts.

License

Notifications You must be signed in to change notification settings

KingCol13/stan-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Requirements

  • nvim-treesitter for syntax highlighting
  • snippets plugin that uses VS Code style snippets, e.g. vsnip

Using vundle:

Plugin 'KingCol13/stan-nvim'

Tree-sitter configuration

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

Features

  • stan filetype detection
  • syntax highlighting, identation, folding using nvim-treesitter
  • VS Code style snippets

About

Neovim extension for Stan including tree-sitter queries and snipepts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published