Installation · Setup · Usage
A Neovim plugin designed to enhance your Markdown navigation experience.
Leveraging the power of Lua and Neovim built-in features, it offers an efficient way to follow links within Markdown documents, without the need for external dependencies. Intended to be minimal, fast, and simple to use.
{
"daenikon/marknav.nvim",
ft = { "markdown", "md" },
config = function()
require("marknav").setup()
end
}
use "daenikon/marknav.nvim"
Plug 'daenikon/marknav.nvim'
After installation, initialize marknav by adding the following to your Neovim configuration:
require("marknav").setup()
The above line is redundant with the provided config for lazy.nvim.
marknav.nvim
is designed to work exclusively within Markdown files, offering the following commands and keybindings:
Command | Default Keybind | Description |
---|---|---|
:MarknavJump |
Enter | Jump to the link under the cursor. |
:MarknavTab |
<Leader> + Enter | Open the link under the cursor in a new tab. |
:MarknavBack |
Backspace | Navigate back to the previous file. |
Ensure you have a <Leader> key set in your init.lua
for optimal use. For example, to set the spacebar as your leader key:
vim.g.mapleader = " "