Test disabling position if buffer has no parser

This commit is contained in:
Evie Litherland-Smith 2023-02-17 09:15:51 +00:00
parent 6bd20abc84
commit 8989bcd547

View file

@ -306,6 +306,9 @@ function M.get()
-- treesitter position
components.active[1][14] = {
provider = function()
if not require("nvim-treesitter.parsers").has_parser() then
return ""
end
local pos = require("nvim-treesitter").statusline()
if pos and pos ~= "" then
return pos