RaafatTurki / hex.nvim

hex editing done right
MIT License
212 stars 8 forks source link

Not an editor command: LspStop #7

Closed martin-braun closed 1 year ago

martin-braun commented 1 year ago

When I toggle the hex view it works, but when going from hex view to normal view I get:

Error executing Lua callback: ...are/nvim/site/pack/packer/opt/hex.nvim/lua/hex/utils.lua:17: Vim:E492: Not an editor command: LspStop
stack traceback:
        [C]: in function 'cmd'
        ...are/nvim/site/pack/packer/opt/hex.nvim/lua/hex/utils.lua:17: in function 'dump_to_hex'
        ...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lua:31: in function 'dump'
        ...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lua:47: in function <...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lu
a:45>
RaafatTurki commented 1 year ago

Ah, this was a FIXME that was collecting dust, new update should fix this

martin-braun commented 1 year ago

Now I get:

Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim:E492: Not an editor command: LspStop
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...are/nvim/site/pack/packer/opt/hex.nvim/lua/hex/utils.lua:17: in function 'dump_to_hex'
        ...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lua:31: in function 'dump'
        ...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lua:47: in function <...cal/share/nvim/site/pack/packer/opt/hex.nvim/lua/hex.lu
a:45>
loqusion commented 1 year ago

@martin-braun It looks like you're still using the old version, try configuring your plugin manager to use the latest version and updating.

loqusion commented 1 year ago

On a related note, vim.lsp.buf.server_ready() was deprecated a few days ago and won't be in Nvim version 0.10.0 (See https://github.com/neovim/neovim/pull/23520)

RaafatTurki commented 1 year ago

thanks! just updated