numToStr/Navigator.nvim
关于
:sparkles: Smoothly navigate between neovim and terminal multiplexer(s) :sparkles:
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Navigator.nvim
✨ Smoothly navigate between neovim and multiplexer(s) ✨

Navigator.nvim provides set of functions and commands that allows you to seamlessly navigate between neovim and different terminal multiplexers.
🚀 Installation
Neovim
- With packer.nvim
use {
'numToStr/Navigator.nvim',
config = function()
require('Navigator').setup()
end
}
- With vim-plug
Plug 'numToStr/Navigator.nvim'
" Somewhere after plug#end()
lua require('Navigator').setup()
⚒️ Setup
Neovim
require('Navigator').setup()
- Keybindings
Note - This plugin doesn't provide any keybindings by default, feel free to use (and modify) the following or create your own keybindings.
vim.keymap.set({'n', 't'}, '<A-h>', '<CMD>NavigatorLeft<CR>')
vim.keymap.set({'n', 't'}, '<A-l>', '<CMD>NavigatorRight<CR>')
vim.keymap.set({'n', 't'}, '<A-k>', '<CMD>NavigatorUp<CR>')
vim.keymap.set({'n', 't'}, '<A-j>', '<CMD>NavigatorDown<CR>')
vim.keymap.set({'n', 't'}, '<A-p>', '<CMD>NavigatorPrevious<CR>')
Multiplexer(s)
Note - This plugin doesn't provide any configuration for multiplexers, feel free to use (and modify) the snippet for multiplexer of your choice by following the links below.
Configuration (optional)
Following options can be given when calling setup({config}). Below is the default configuration
{
-- Save modified buffer(s) when moving to mux
-- nil - Don't save (default)
-- 'current' - Only save the current modified buffer
-- 'all' - Save all the buffers
auto_save = nil,
-- Disable navigation when the current mux pane is zoomed in
disable_on_zoom = false,
-- Multiplexer to use
-- 'auto' - Chooses mux based on priority (default)
-- table - Custom mux to use
mux = 'auto'
}
🔥 Usage
Commands
NavigatorLeft- Go to left split/paneNavigatorRight- Go to right split/paneNavigatorUp- Go to upper split/paneNavigatorDown- Go to down split/paneNavigatorPrevious- Go to previous split/pane
Read
:h navigator.commandsfor more info
Lua API
require('Navigator').left()
require('Navigator').right()
require('Navigator').up()
require('Navigator').down()
require('Navigator').previous()
Read
:h navigator.apifor more info
💐 Credits
- vim-tmux-navigator - Motivator and Vimscript cousin
探索相关项目
加载中…