Skip to content

Commit

Permalink
fix(format-queries): require nvim-treesitter before scanning rtp (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen authored Jan 3, 2025
1 parent 990d370 commit 9941f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/conform/formatters/format-queries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ return {
},
condition = function()
local ok = pcall(vim.treesitter.language.inspect, "query")
return ok and get_format_script() ~= nil
return ok and pcall(require, "nvim-treesitter") and get_format_script() ~= nil
end,
command = "nvim",
args = function()
Expand Down

0 comments on commit 9941f10

Please sign in to comment.