zk-org / zk-nvim

Neovim extension for zk
https://github.com/zk-org/zk
GNU General Public License v3.0
530 stars 42 forks source link

Command :ZkNotes produces error: unknown zk LSP command: zk.list #22

Closed idevat closed 2 years ago

idevat commented 2 years ago

I installed and configured zk-nvim as described in readme (only require("zk").setup()). When I run :ZkNotes I got:

Error executing vim.schedule lua callback: .../idevat/.local/share/nvim/plugged/zk-nvim/lua/zk/api.lua:26: RPC[Error] code_name = InvalidRequest, message = "unknown zk LSP command: zk.list"
stack traceback:
        [C]: in function 'assert'
        .../idevat/.local/share/nvim/plugged/zk-nvim/lua/zk/api.lua:26: in function 'handler'
        /home/idevat/.local/share/nvim/runtime/lua/vim/lsp.lua:963: in function 'cb'
        vim.lua:285: in function <vim.lua:285>
mickael-menu commented 2 years ago

Make sure you have the latest zk version 0.9.0 installed, before it was not available.

You can check which version you have with zk --version.

kabouzeid commented 2 years ago

We should probably add something like this to the README https://github.com/mickael-menu/zk-nvim/pull/23

idevat commented 2 years ago

With version 0.9.0 it works, thanks.