Skip to content

reasonml-editor/tree-sitter-reason

Repository files navigation

tree-sitter-reason (experimental)

Neovim Installation

-- Install grammar with nvim-treesitter
local list = require("nvim-treesitter.parsers").get_parser_configs()
list.reason = {
  install_info = {
    url = "https://github.com/reasonml-editor/tree-sitter-reason",
    files = { "src/parser.c", "src/scanner.c" },
    branch = "master",
  },
}

Then you need to copy the files from queries/reason/highlights.scm into somewhere in your runtimepath (with the same name).

If you don't detect Reason files, you need this too:

-- Adds reason as a filetype
vim.filetype.add {
  extension = {
    re = "reason",
  },
}

-- (Sometimes required): Tells neovim to load reason
vim.treesitter.language.add("reason", { filetype = "reason" })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published