diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-08 16:43:52 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-08 16:55:34 +0200 |
| commit | 53651f0bad63f755294d4bea4800e05ef995ce34 (patch) | |
| tree | d7de34199fec679102355511f3fcddd7e8badb34 /.config | |
| parent | b52729fab5a8b6ee6e9f04de9aaa3b82bdc03ece (diff) | |
| download | dotfiles-53651f0bad63f755294d4bea4800e05ef995ce34.tar.gz dotfiles-53651f0bad63f755294d4bea4800e05ef995ce34.zip | |
misc(nvim): make notes tags picker display more readable
The split is horizontal and tags show file and section properly aligned.
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/plugin/50-fzf-lua.lua | 6 | ||||
| -rw-r--r-- | .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 }) |
