~rockorager/tree-sitter-hare

678e76b4f63c538a6d0857c320859a6ccf1a92cf — Tim Culverhouse 1 year, 6 months ago 16647ac
update readme

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 15 insertions(+), 12 deletions(-)

M README.md
M README.md => README.md +15 -12
@@ 20,18 20,21 @@ with some help from
### neovim

1. Manually add the parser to your nvim config:

```lua
require("nvim-treesitter.parsers").get_parser_configs().hare = {
	install_info = {
		url = "https://git.sr.ht/~rockorager/tree-sitter-hare",
		files = {"src/parser.c"},
	},
	filetype = "hare",
	requires_generate_from_grammar = true,
}
```

	```lua
	require("nvim-treesitter.parsers").get_parser_configs().hare = {
		install_info = {
			url = "https://git.sr.ht/~rockorager/tree-sitter-hare",
			files = {"src/parser.c"},
		},
		filetype = "hare",
		requires_generate_from_grammar = true,
	}
	```
2. Link or copy `queries/highlights.scm` to
   `$XDG_CONFIG_HOME/nvim/queries/hare/highlights.scm`
3. Open nvim, and run :TSInstall hare

## Contributing

Patches or issues can be sent to
[~rockorager/tree-sitter-hare@lists.sr.ht](mailto:~rockorager/tree-sitter-hare@lists.sr.ht)