-
Verify
How can we help you?I've just updated neovim from prio 0.10 to 0.10.1 and currently I can't zk-nvim to work as every command within neovim leads to the following error:
I've also updated to the latest commit as I thought this commit would address the problem. But it does. Currently I'm running and this is my config using lazy.nvim
Did I miss something for the transition? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nothing needs to be changed config wise for the new version. But your current config is incorrect to begin with. The See the setup section, which shows the correct config. It's also worth fully closing any neovim session that's running in a zk notebook after updating, and then opening fresh. Just in case something plays weird. Let me know if this fixes the issue! require("zk").setup({
-- can be "telescope", "fzf", "fzf_lua", "minipick", or "select" (`vim.ui.select`)
-- it's recommended to use "telescope", "fzf", "fzf_lua", or "minipick"
picker = "select",
lsp = {
-- `config` is passed to `vim.lsp.start_client(config)`
config = {
cmd = { "zk", "lsp" },
name = "zk",
-- on_attach = ...
-- etc, see `:h vim.lsp.start_client()`
},
-- automatically attach buffers in a zk notebook that match the given filetypes
auto_attach = {
enabled = true,
filetypes = { "markdown" },
},
},
}) |
Beta Was this translation helpful? Give feedback.
Nothing needs to be changed config wise for the new version.
But your current config is incorrect to begin with. The
cmd
iszk lsp
.See the setup section, which shows the correct config.
It's also worth fully closing any neovim session that's running in a zk notebook after updating, and then opening fresh. Just in case something plays weird.
Let me know if this fixes the issue!