A neo-tree source for zk-nvim.
Via packer.nvim
use {
"prncss-xyz/neo-tree-zk.nvim",
requires = {
"nvim-neo-tree/neo-tree.nvim",
"mickael-menu/zk-nvim"
},
}
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",
},
},
}
From you zk directory, call :Neotree source=zk
.
Then use the 'change_query' command (n
) to see notes belonging to the selected query.