diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-06-21 19:50:24 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-06-21 19:50:24 +0200 |
| commit | ec903ac99d07e0960d0acc71e70ba9809742bfbf (patch) | |
| tree | e3a059f44f134cf113aed07a7a3b33516fc6adec /lua | |
| parent | b84fde9718f4f75f2515f8ac5d73cf91c716c4aa (diff) | |
fix(statusline): don't call if no parser
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/nvim-treesitter.lua b/lua/nvim-treesitter.lua index dde4ac0f..9b3ddce8 100644 --- a/lua/nvim-treesitter.lua +++ b/lua/nvim-treesitter.lua @@ -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() |
