diff options
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 |
