craigdallimore Github contribution chart
craigdallimore Github Stats
craigdallimore Most Used Languages

Activity

25 Aug 2022

Craigdallimore

started

Started On 25 Aug 2022 at 04:28:17

Craigdallimore

started

Started On 22 Aug 2022 at 11:25:50
Create Branch

Craigdallimore

A lua treesitter plugin for neovim

On 09 Aug 2022 at 05:18:14

Craigdallimore

A lua treesitter plugin for neovim

On 09 Aug 2022 at 05:17:02
Issue Comment

Craigdallimore

`$ZK_NOTEBOOK_DIR` not works

I have configurated $ZK_NOTEBOOK_DIR, and zk command runs well, but it still cannot found notebook in neovim.

~/.zshrc:

export ZK_NOTEBOOK_DIR="$HOME/Notes" 
 $  echo $ZK_NOTEBOOK_DIR
/Users/<username>/Notes 

zk command:

 $  zk list
INDEX index.md (12 hours ago)

  ‣ Content goes here.


Found 1 note 

plugin settings:

zk.setup {
    picker = 'telescope'
} 

nvim ZkNotes command:

Error executing vim.schedule lua callback: ...cal/share/nvim/site/pack/packer/st
art/zk-nvim/lua/zk.lua:99: RPC[Error] code_name = InvalidRequest, message = "fai
led to open notebook: no notebook found in /Users/<username>/.config/nvim or a paren
t directory"
stack traceback:
        [C]: in function 'assert'
        ...cal/share/nvim/site/pack/packer/start/zk-nvim/lua/zk.lua:99: in funct
ion 'handler'
        ...l/Cellar/neovim/0.6.1/share/nvim/runtime/lua/vim/lsp.lua:964: in func
tion 'cb'
        vim.lua:285: in function <vim.lua:285>
Press ENTER or type command to continue 

 $  zk --version
zk 0.9.0

 $  nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey 

Forked On 26 Jul 2022 at 09:03:40

Craigdallimore

This helped me.

~/path/to/notebook doesn't work the way I expected $HOME/path/to/notebook does 👍🏻

Commented On 26 Jul 2022 at 09:03:40