mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(statusline): don't call if no parser
This commit is contained in:
parent
b84fde9718
commit
ec903ac99d
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ function M.setup()
|
|||
end
|
||||
|
||||
function M.statusline(indicator_size)
|
||||
if not parsers.has_parser() then return end
|
||||
local indicator_size = indicator_size or 100
|
||||
|
||||
local current_node = ts_utils.get_node_at_cursor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue