]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/commitdiff
Use the plugin path as the tree-sitter config
authorRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:24:36 +0000 (16:24 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:24:36 +0000 (16:24 +0200)
lua/tree-sitter-api-notation.lua

index a314a33d84c1406cebb5f62f43df1929e4a47c9b..223958a163760bcfb3098249723704b341468d7d 100644 (file)
@@ -5,7 +5,7 @@ function M.setup()
   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
+      url = vim.fn.expand('%:p:h:h'),
       files = {'src/parser.c'},
       branch = 'main'
     }