Skip to content

Commit 23c719a

Browse files
fix(treesitter): Skip version check when parser is not managed by nvim-orgmode
1 parent b0c9896 commit 23c719a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/orgmode/utils/treesitter/install.lua

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ function M.get_version_info()
7373
result.parser_locations = parser_locations.parser_locations
7474
result.installed_in_orgmode_dir = parser_locations.installed_in_orgmode_dir
7575

76+
if not result.installed_in_orgmode_dir then
77+
return result
78+
end
79+
7680
local installed_version = M.get_installed_version()
7781
result.installed_version = installed_version
7882
result.outdated = vim.version.lt(installed_version, required_version)

0 commit comments

Comments
 (0)