zk-org / zk-nvim

Neovim extension for zk
https://github.com/zk-org/zk
GNU General Public License v3.0
502 stars 40 forks source link

Error in telescope previewer: Expected Lua number #102

Closed Bekaboo closed 1 year ago

Bekaboo commented 1 year ago

zk config:

vim.env.ZK_NOTEBOOK_DIR= os.getenv('HOME') .. '/Scratches/Notes'

require('zk').setup({
  picker = 'telescope',
  lsp = {
    config = {
      cmd = { 'zk', 'lsp' },
      name = 'zk',
    }
  }
})

How to reproduce

  1. Setup telescope properly and use the config provided above to setup zk
  2. Open telescope with :ZkNotes
  3. Inside telescope prompt, Enter normal mode and holding j; or holding <C-n> in insert mode
  4. See the error in 1~2 seconds.

Screenshot

image

Other useful information

This error does not appear / is harder to reproduce when your keystroke frequency is lower. Mine is 60 times/sec.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.