ggandor / leap.nvim

Neovim's answer to the mouse 🦘
MIT License
4.22k stars 45 forks source link

Breaking Change: strcharpart too many arguments #172

Closed Caylub closed 1 year ago

Caylub commented 1 year ago

Hey, I'm loving the plugin.

There was a breaking change with the latest commit related to strcharpart

E5108: Error executing lua: Vim:E118: Too many arguments for function: strcharpart
stack traceback:
    [C]: in function 'strcharpart'
    .../.local/share/nvim/lazy/leap.nvim/lua/leap/highlight.lua:67: in function 'highlight-cursor'
    .../.local/share/nvim/lazy/leap.nvim/lua/leap/main.lua:730: in function 'get_first_pattern_input'
    .../.local/share/nvim/lazy/leap.nvim/lua/leap/main.lua:987: in function 'leap'
    .../.local/share/nvim/lazy/leap.nvim/plugin/init.lua:53: in function <.../.local/share/nv

Environment: PopOS NeoVim Version:

❯ nv --version
NVIM v0.10.0-dev-133+gdbcd1985d
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

Package Manager: LazyNvim


ggandor commented 1 year ago

Yeah, this is already fixed for the stable release (https://github.com/ggandor/leap.nvim/issues/171). If you're on nightly nvim, it is assumed you are using the current latest version, so you should update.

Caylub commented 1 year ago

Got it. My bad; thanks for the quick reply. Updating now...