From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:24:36 +0000 (+0200) Subject: Use the plugin path as the tree-sitter config X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/commitdiff_plain/d05e91141c5f3075825017befe5001acb7ad8edc?ds=inline;hp=7e8e1a0ccb55135ae4fadf134f3cc2a5ef92e71a Use the plugin path as the tree-sitter config --- diff --git a/lua/tree-sitter-api-notation.lua b/lua/tree-sitter-api-notation.lua index a314a33..223958a 100644 --- a/lua/tree-sitter-api-notation.lua +++ b/lua/tree-sitter-api-notation.lua @@ -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' }