ap29600 / tree-sitter-odin

Odin grammar for tree-sitter
MIT License
17 stars 4 forks source link

Fix install instructions by specifying branch #7

Closed marcs-feh closed 1 year ago

marcs-feh commented 1 year ago

When the branch is not specified in the install info neovim will guess it is master, however this repo uses main which causes a mv command to fail during install, to fix, simply specify that in the install_info

local parser_confs = require 'nvim-treesitter.parsers'.get_parser_configs()
parser_confs.odin = {
    install_info = {
        url = 'https://github.com/ap29600/tree-sitter-odin',
        branch = 'main',
        files = {"src/parser.c"}
  },
    filetype = "odin",
}