Usage
February 19, 2023 ยท View on GitHub
neovim
-
Manually add the parser to your nvim config:
require("nvim-treesitter.parsers").get_parser_configs().scfg = { install_info = { url = "https://git.sr.ht/~rockorager/tree-sitter-scfg", files = {"src/parser.c"}, }, filetype = "scfg", requires_generate_from_grammar = true, } -- register the filetype, this is not built in to neovim vim.filetype.add({ extension = { scfg = "scfg", } }) -
Link or copy
queries/highlights.scmto$XDG_CONFIG_HOME/nvim/queries/scfg/highlights.scm -
Open nvim, and run :TSInstall scfg
Contributing
Patches or issues can be sent to ~rockorager/public-inbox@lists.sr.ht