improve error message

This commit is contained in:
ray-x 2021-09-02 16:26:07 +10:00
parent e17b25eee7
commit 401e08e2b4

View File

@ -59,6 +59,7 @@ M.get_nodes = function(query, lang, defaults, bufnr)
return vim.treesitter.parse_query(lang, query)
end)
if not success then
print("treesitter parse failed, make sure treesitter installed and setup correctly")
return nil
end