Skip to content

daenikon/marknav.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marknav.nvim

GitHub License GitHub last commit Built with Lua Neovim v0.5.0+

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.

DEMO GIF

Installation

{ 'daenikon/marknav.nvim' }
use "daenikon/marknav.nvim"
Plug 'daenikon/marknav.nvim'

Setup

After installation, initialize marknav by adding the following to your Neovim configuration:

require("marknav").setup()

Usage

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 = " "

About

Blazingly fast navigation of Markdown links written in pure Lua.

Topics

Resources

License

Stars

Watchers

Forks

Languages