summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-24 17:11:35 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-24 17:11:35 +0200
commitd08a3df4f5cbc8411d295e00bf8e42b0bf5c5355 (patch)
tree20f7123c531c8b85db04561baefd48b48f8b203a /plugin
parent4a911a213cbb2de6e83b3e1910e1c99c383abbb1 (diff)
downloadnvim-config-d08a3df4f5cbc8411d295e00bf8e42b0bf5c5355.tar.gz
nvim-config-d08a3df4f5cbc8411d295e00bf8e42b0bf5c5355.zip
misc(nvim): edit notes-specific fzf keymaps to override default fzf keymaps
Diffstat (limited to 'plugin')
-rw-r--r--plugin/50-notes.lua19
1 files changed, 10 insertions, 9 deletions
diff --git a/plugin/50-notes.lua b/plugin/50-notes.lua
index 4e0494c..11a8aef 100644
--- a/plugin/50-notes.lua
+++ b/plugin/50-notes.lua
@@ -18,11 +18,12 @@
-- `NotesFindGrep`: fuzzy-find notes (content)
-- `NotesOpen`: move to the notes directory and open index
--
--- Keymaps:
--- `<Leader>no`: open notes in current window
--- `<Leader>nn`: fuzzy-find notes by tags
--- `<Leader>nf`: fuzzy-find notes by file name
--- `<Leader>ng`: fuzzy-find notes by content
+-- Keymaps (the find maps deliberately override the matching `<Leader>f…` defaults from 50-fzf.lua,
+-- which loads earlier TODO proper fix):
+-- `<Leader>fo`: open notes in current window
+-- `<Leader>ft`: fuzzy-find notes by tags
+-- `<Leader>ff`: fuzzy-find notes by file name
+-- `<Leader>fg`: fuzzy-find notes by content
-- `<Tab>` / `<S-Tab>` (in notes buffers): go to next/previous followable entity
--
@@ -535,9 +536,9 @@ vim.api.nvim_create_user_command(
)
vim.api.nvim_create_user_command("NotesOpen", open_notes, { desc = "Open notes" })
-vim.keymap.set("n", "<Leader>no", vim.cmd.NotesOpen, { desc = "Open notes in current window" })
-vim.keymap.set("n", "<Leader>nn", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" })
-vim.keymap.set("n", "<Leader>nf", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" })
-vim.keymap.set("n", "<Leader>ng", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" })
+vim.keymap.set("n", "<Leader>fo", vim.cmd.NotesOpen, { desc = "Open notes in current window" })
+vim.keymap.set("n", "<Leader>ft", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" })
+vim.keymap.set("n", "<Leader>ff", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" })
+vim.keymap.set("n", "<Leader>fg", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" })
generate_tags()