From 375d135e833a525f9e84d8ce87160b29e02083f1 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 25 Sep 2023 10:18:13 +0200 Subject: [PATCH] feat: add backlink ref --- nvim/.config/nvim/lua/config/zk.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/config/zk.lua b/nvim/.config/nvim/lua/config/zk.lua index b9eb01d..8011b1d 100644 --- a/nvim/.config/nvim/lua/config/zk.lua +++ b/nvim/.config/nvim/lua/config/zk.lua @@ -44,9 +44,9 @@ vim.api.nvim_set_keymap("n", "zf", "ZkNotes { sort = { 'modified' } vim.api.nvim_set_keymap("v", "zf", ":'<,'>ZkMatch", opts) -- Open notes linking to the current buffer. -vim.api.nvim_set_keymap("n", "zb", "ZkBacklinks", opts) +-- vim.api.nvim_set_keymap("n", "zb", "ZkBacklinks", opts) -- Alternative for backlinks using pure LSP and showing the source context. ---map('n', 'zb', 'lua vim.lsp.buf.references()', opts) +vim.api.nvim_set_keymap('n', 'zb', 'lua vim.lsp.buf.references()', opts) -- Open notes linked by the current buffer. vim.api.nvim_set_keymap("n", "zL", "ZkLinks", opts)