numToStr / Navigator.nvim

:sparkles: Smoothly navigate between neovim and terminal multiplexer(s) :sparkles:
MIT License
391 stars 21 forks source link

Navigator.lua:5: attempt to call local 'ucmd' (a nil value) #14

Closed metaory closed 2 years ago

metaory commented 2 years ago

NVIM v0.7.0-dev+1275-g00effff56

use {
    'numToStr/Navigator.nvim',
    config = function()
        require('Navigator').setup()
    end
}

local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }

map('n' , "<C-h>" , "<CMD>lua require('Navigator').left()<CR>"  , opts)
map('n' , "<C-l>" , "<CMD>lua require('Navigator').right()<CR>" , opts)
map('n' , "<C-j>" , "<CMD>lua require('Navigator').down()<CR>"  , opts)
map('n' , "<C-k>" , "<CMD>lua require('Navigator').up()<CR>"    , opts)

navigations works fine, but on startup getting:

Error detected while processing /home/meta/.local/share/nvim/site/pack/packer/start/Navigator.nvim/plugin/Navigator.lua:
E5113: Error while calling lua chunk: ...te/pack/packer/start/Navigator.nvim/plugin/Navigator.lua:5: attempt to call local 'ucmd' (a nil value)
stack traceback:
        ...te/pack/packer/start/Navigator.nvim/plugin/Navigator.lua:5: in main chunk
numToStr commented 2 years ago

You must be on nvim 0.6. If you are then please follow https://github.com/numToStr/Navigator.nvim/releases/tag/v0.6

metaory commented 2 years ago

Nope,

nvim -ve

NVIM v0.7.0-dev+1275-g00effff56
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az242-546

Features: +acl +iconv +tui
See ":help feature-compile"

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

Run :checkhealth for more info
numToStr commented 2 years ago

@metaory Try to rebuild it or use the stable 0.7

metaory commented 2 years ago

just rebuilt with NVIM v0.8.0-dev+127-g3ec93ca92 aur neovim-git

libvterm was in conflicts

now seem fine, no runtime error :+1:

numToStr commented 2 years ago

I would rather recommend you to just built it from source.

metaory commented 2 years ago

all is good with NVIM v0.8.0-dev+127-g3ec93ca92

thanks.