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 | 62df2097896f3bb87dfdf186ee2c0a14a43a36d5 (patch) | |
| tree | 2aa4fc0b2fa1936a08cc60522119dbee7120b6d3 /plugin/50-notes.lua | |
| parent | 20510e09c2b776573d22fa6906aa3ee2f07ca872 (diff) | |
| download | nvim-config-62df2097896f3bb87dfdf186ee2c0a14a43a36d5.tar.gz nvim-config-62df2097896f3bb87dfdf186ee2c0a14a43a36d5.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 'plugin/50-notes.lua')
| -rw-r--r-- | plugin/50-notes.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/50-notes.lua b/plugin/50-notes.lua index 59f582e..991d84e 100644 --- a/plugin/50-notes.lua +++ b/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 }) |
