From 53651f0bad63f755294d4bea4800e05ef995ce34 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 8 Jun 2026 16:43:52 +0200 Subject: misc(nvim): make notes tags picker display more readable The split is horizontal and tags show file and section properly aligned. --- .config/nvim/plugin/50-fzf-lua.lua | 6 +++--- .config/nvim/plugin/50-notes.lua | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.config/nvim/plugin/50-fzf-lua.lua b/.config/nvim/plugin/50-fzf-lua.lua index 750341e..cc4f440 100644 --- a/.config/nvim/plugin/50-fzf-lua.lua +++ b/.config/nvim/plugin/50-fzf-lua.lua @@ -48,9 +48,9 @@ fzf.setup({ -- Sticky footer of keybinding hints, like --footer in ~/.config/fzf/fzf.bash. fzf_opts = { ["--footer"] = table.concat({ - "Alt+Y\tcopy to clipboard", - "Ctrl+Y\ttoggle selection", - "Alt+/\tshow/hide preview", + "Alt+Y copy to clipboard", + "Ctrl+Y toggle selection", + "Alt+/ show/hide preview", }, "\n"), }, }) diff --git a/.config/nvim/plugin/50-notes.lua b/.config/nvim/plugin/50-notes.lua index 59f582e..991d84e 100644 --- a/.config/nvim/plugin/50-notes.lua +++ b/.config/nvim/plugin/50-notes.lua @@ -100,7 +100,12 @@ vim.api.nvim_create_autocmd("BufWritePost", { generate_tags() vim.api.nvim_create_user_command("NotesFindTags", function() - require("fzf-lua").tags({ ctags_file = tagfile, cwd = notes_dir }) + require("fzf-lua").tags({ + ctags_file = tagfile, + cwd = notes_dir, + winopts = { preview = { layout = "vertical" } }, + fzf_opts = { ["--delimiter"] = "[\t]", ["--with-nth"] = "{2}\t{1}", ["--tabstop"] = "48" }, + }) end, { desc = "Fuzzy-find notes (tag,name,section)" }) vim.api.nvim_create_user_command("NotesFindFile", function() require("fzf-lua").files({ cwd = notes_dir }) -- cgit v1.3.1