github zk-org/zk-nvim v0.4.1

latest releases: v0.4.3, v0.4.2
3 months ago

Fixes #228 . Which in short was lsp errors resulting from api changes of neovim 0.11.0

See pr: #230

Important

The filetypes config key has been moved to lsp.config in keeping with the lsp.ClientConfig spec.

return {
  "zk-org/zk-nvim",
  config = function()
    require("zk").setup({
      -- Can be "telescope", "fzf", "fzf_lua", "minipick", "snacks_picker",
      -- or select" (`vim.ui.select`).
      picker = "select",

      lsp = {
        -- `config` is passed to `vim.lsp.start(config)`
        config = {
          name = "zk",
          cmd = { "zk", "lsp" },
          filetypes = { "markdown" },
          -- on_attach = ...
          -- etc, see `:h vim.lsp.start()`
        },

        -- automatically attach buffers in a zk notebook that match the given filetypes
        auto_attach = {
          enabled = true,
          -- filetypes = {"markdown"} -- moved to lsp.config above
        },
      },
    })
  end,
}

Don't miss a new zk-nvim release

NewReleases is sending notifications on new releases.