ray-x / navigator.lua

Code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐 Exploring LSP and 🌲Treesitter symbols a piece of 🍰 Take control like a boss 🦍

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treesitter on empty window

Davincible opened this issue · comments

Small error, when calling the treesitter searcher on an empty buffer I get this;

E5108: Error executing lua: .../packer/start/navigator.lua/lua/navigator/treesitter.lua:770: attempt to perform arithmetic on local 'width' (a nil value)                                          
stack traceback:
        .../packer/start/navigator.lua/lua/navigator/treesitter.lua:770: in function <.../packer/start/navigator.lua/lua/navigator/treesitter.lua:759>

I guess it should just fail silently or print a msg that there's nothing to run

commented

should be fixed.

Sweet