--- /dev/null
+# tree-sitter-api-notation
+
+This is a tree-sitter parser for [api-notation][api-notation].
+
+## Neovim plugin
+
+If you use `nvim-treesitter`, you can also include this as a plugin and it will
+make sure it's configured correctly.
+
+```
+require('lazy').setup({
+ ...
+ 'https://git.sr.ht/~rbdr/tree-sitter-api-notation'
+ ...
+}
+```
+
+[api-notation]: https://unlimited.pizza/api.html
--- /dev/null
+local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
+parser_config.api_notation = {
+ install_info = {
+ url = 'https://git.sr.ht/~rbdr/tree-sitter-api-notation', -- local path or git repo
+ files = {'src/parser.c'},
+ branch = 'main'
+ }
+}
+vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
+ pattern = {'*.api', '*.apinotation'},
+ callback = function () vim.opt.filetype = 'api_notation' end
+})