Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 934 Bytes

README.md

File metadata and controls

48 lines (38 loc) · 934 Bytes

Neo-tree-zk

A neo-tree source for zk-nvim.

Installation

Via packer.nvim

use {
  "prncss-xyz/neo-tree-zk.nvim",
  requires = {
    "nvim-neo-tree/neo-tree.nvim",
    "mickael-menu/zk-nvim"
  },
}

Setup

In your neo-tree config:

  require("neo-tree").setup {
    sources = {
      -- default sources
      "filesystem",
      "buffers",
      "git_status",
      -- user sources goes here
      "zk",
    },
    -- ...
    zk = {
      follow_current_file = true,
      window = {
        mappings = {
          ["n"] = "change_query",
        },
      },
    }

Usage

From you zk directory, call :Neotree source=zk.

Then use the 'change_query' command (n) to see notes belonging to the selected query.