diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-14 10:28:08 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-14 10:29:54 +0200 |
| commit | c8dc1635f8a921269f714117f414bbc7ba24f9fd (patch) | |
| tree | 336a0bb466a5e023c0a0e6472c9876ff7458de68 /lua/muwiki/links/navigation.lua | |
| parent | ffc0482ab89924cb35155fa82033e3d0ddc6c93d (diff) | |
refactor: consolidate modules and improve structure
Diffstat (limited to 'lua/muwiki/links/navigation.lua')
| -rw-r--r-- | lua/muwiki/links/navigation.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lua/muwiki/links/navigation.lua b/lua/muwiki/links/navigation.lua deleted file mode 100644 index 42b6654..0000000 --- a/lua/muwiki/links/navigation.lua +++ /dev/null @@ -1,20 +0,0 @@ -local M = {} - -local function jump_link(direction) - local flags = direction == 'next' and 'w' or 'bw' - local msg = direction == 'next' and 'No more links' or 'No previous links' - - if vim.fn.search('\\[.\\{-}\\]', flags) == 0 then - vim.notify(msg, vim.log.levels.INFO) - end -end - -function M.next_link() - jump_link('next') -end - -function M.prev_link() - jump_link('prev') -end - -return M |
