chrisant996 / clink-gizmos

A library of Lua scripts for use with Clink https://github.com/chrisant996/clink.
MIT License
72 stars 6 forks source link

matchicons.lua:1034: bad argument #1 to 'tonumber' (value expected) #5

Closed bw1faeh0 closed 9 months ago

bw1faeh0 commented 9 months ago

Hi,

as early adopter I tried the new matchicons.lua this morning.

After enabling it (clink set matchicons.enable true) and restarting my shell, I got following error after the first keystroke:

grafik

I was trying to cd into an directory.

clink version: 1.6.4.1dd7ec

I'm disabling it for now.

chrisant996 commented 9 months ago

Thanks for trying it and reporting the error.

I pushed a fix.

The error happened when the DIRX_NERD_FONT_VERSION and DIRX_ICON_SPACING environment variables were not set. They're related to dirx, and I have them set on my machine because I've been testing the dirx program.