Lean mean Neovim machine, 30-45ms startup time. Works best with Neovim β₯0.10
βοΈ See "Extending" for customizing configuration and adding plugins.
π© git tag vim
tracks the last revision using Dein.nvim and plugins.yaml. Since then, the
entire configuration has been rewritten to use lazy.nvim and Lua.
I encourage you to fork this repo and create your own experience. Learn how to tweak and change Neovim to the way YOU like it. This is my cultivation of years of tweaking, use it as a git remote and stay in-touch with upstream for reference or cherry-picking.
Table of Contents (π Click to expand/collapse)
- Fast startup time β plugins are almost entirely lazy-loaded!
- Robust, yet light-weight
- Plugin management with folke/lazy.nvim. Use with
:Lazy
or Space+l - Install LSP, DAP, linters, and formatters. Use with
:Mason
or Space+mm - LSP configuration with nvim-lspconfig
- telescope.nvim centric work-flow with lists (try ;+fβ¦)
- Custom context-menu (try it! ;+c)
- Auto-complete extensive setup with nvim-cmp (try Tab or Ctrl+Space in insert-mode)
- Structure view with [hedyhli/outline.nvim]
- Git features using lewis6991/gitsigns.nvim, sindrets/diffview.nvim, and more
- Session management with folke/persistence.nvim
- Unobtrusive, yet informative status & tab lines
- Premium color-schemes
- Remembers last-used colorscheme
Optional, but highly recommended:
- bat (
brew install bat
) - fd (
brew install fd
) - fzf (
brew install fzf
) - ripgrep (
brew install ripgrep
) - zoxide (
brew install zoxide
)
-
Let's clone this repo! Clone to
~/.config/nvim
mkdir -p ~/.config git clone git@github.com:rafi/vim-config.git ~/.config/nvim cd ~/.config/nvim
-
Run
nvim
(will install all plugins the first time).It's highly recommended running
:checkhealth
to ensure your system is healthy and meet the requirements. -
Inside Neovim, run
:LazyExtras
and use x to install extras.
Enjoy! π
Use :Mason
(or Space+mm) to install and manage LSP
servers, DAP servers, linters and formatters. See :h mason.nvim
and
williamboman/mason.nvim for more information.
You can install LSP servers using :Mason
UI, or :MasonInstall <name>
,
or :LspInstall <name>
(use Tab to list available servers).
See Mason's PACKAGES.md
for the official list, and the Language server mapping
list. You can also view at :h mason-lspconfig-server-map
You'll need utilities like npm
and curl
to install some extensions, see
requirements
(or :h mason-requirements
) for more information.
See lua/rafi/plugins/lsp/init.lua for custom key-mappings and configuration for some language-servers.
:MasonInstall ansible-language-server bash-language-server css-lsp
:MasonInstall dockerfile-language-server gopls html-lsp json-lsp
:MasonInstall lua-language-server marksman pyright sqlls
:MasonInstall svelte-language-server typescript-language-server
:MasonInstall tailwindcss-language-server
:MasonInstall vim-language-server yaml-language-server
and moreβ¦
:MasonInstall vint shellcheck editorconfig-checker flake8 gitlint hadolint
:MasonInstall markdownlint mypy selene shellharden write-good yamllint
:MasonInstall black fixjson gofumpt golines isort
:MasonInstall shfmt sql-formatter stylua
- Pragmata Pro (β¬19 β β¬1,990): My preferred font
- Any of the Nerd Fonts
On macOS with Homebrew, choose one of the Nerd Fonts, for example, here are some popular fonts:
brew tap homebrew/cask-fonts
brew search nerd-font
brew install --cask font-victor-mono-nerd-font
brew install --cask font-iosevka-nerd-font-mono
brew install --cask font-hack-nerd-font
brew install --cask font-fira-code
To upgrade packages and plugins:
- Neovim plugins:
:Lazy update
- Mason packages:
:Mason
and press U
To update Neovim configuration from my repo:
git pull --ff --ff-only
- after/ β Language specific custom settings and plugins.
- lua/ β Lua configurations
config/
β Custom user configurationplugins/
β Custom user plugins (orlua/plugins.lua
)- rafi/
- config/ β Neovim configurations
- autocmd.lua β Auto-commands
- init.lua β Initialization
- keymaps.lua β Key-mappings
- lazy.lua β Entry-point initialization
- options.lua β Editor settings
- plugins/ β Plugins and configurations
- util/ β Utility library
- config/ β Neovim configurations
- snippets/ β Personal code snippets
Fork this repository and create a directory
lua/config
with one or more of these files: (Optional)
lua/config/autocmds.lua
β Custom auto-commandslua/config/options.lua
β Custom optionslua/config/keymaps.lua
β Custom key-mappingslua/config/setup.lua
β Override config, see extend defaults.
Adding plugins or override existing options:
lua/plugins/*.lua
orlua/plugins.lua
β Plugins (See lazy.nvim specs for syntax)
Install "extras" plugins using :LazyExtras
and installing with x.
This saves choices in lazyvim.json
which you can also edit manually, here's a
recommended starting point:
{
"extras": [
"lazyvim.plugins.extras.coding.copilot",
"lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.dap.nlua",
"lazyvim.plugins.extras.lang.docker",
"lazyvim.plugins.extras.lang.json",
"lazyvim.plugins.extras.lang.typescript",
"lazyvim.plugins.extras.lang.yaml",
"lazyvim.plugins.extras.test.core",
"rafi.plugins.extras.coding.align",
"rafi.plugins.extras.editor.harpoon2",
"rafi.plugins.extras.git.cmp-git",
"rafi.plugins.extras.lang.ansible",
"rafi.plugins.extras.lang.go",
"rafi.plugins.extras.lang.helm",
"rafi.plugins.extras.lang.markdown",
"rafi.plugins.extras.lang.python",
"rafi.plugins.extras.lang.tmux",
"rafi.plugins.extras.ui.deadcolumn"
],
"news": [],
"version": 2
}
For installing/overriding/disabling plugins, create a lua/plugins/foo.lua
file (or lua/plugins/foo/bar.lua
or simply lua/plugins.lua
) and manage your
own plugin collection. You can add or override existing plugins' options, or
just disable them all-together. Here's an example:
return {
-- Disable default tabline
{ 'akinsho/bufferline.nvim', enabled = false },
-- And choose a different one!
-- { 'itchyny/lightline.vim' },
-- { 'vim-airline/vim-airline' },
-- { 'glepnir/galaxyline.nvim' },
-- { 'glepnir/spaceline.vim' },
-- { 'liuchengxu/eleline.vim' },
-- Enable GitHub's Copilot
{ import = 'lazyvim.plugins.extras.coding.copilot' },
-- Enable incline, displaying filenames on each window
{ import = 'rafi.plugins.extras.ui.incline' },
-- Disable built-in plugins
{ 'shadmansaleh/lualine.nvim', enabled = false },
{ 'limorris/persisted.nvim', enabled = false },
-- Change built-in plugins' options
{
'nvim-treesitter/nvim-treesitter',
opts = {
ensure_installed = {
'bash', 'comment', 'css', 'diff', 'dockerfile', 'fennel', 'fish',
'gitcommit', 'gitignore', 'gitattributes', 'git_rebase', 'go', 'gomod',
'gosum', 'gowork', 'graphql', 'hcl', 'html', 'javascript', 'jsdoc',
'json', 'json5', 'jsonc', 'jsonnet', 'lua', 'make', 'markdown',
'markdown_inline', 'nix', 'perl', 'php', 'pug', 'python', 'regex',
'rst', 'ruby', 'rust', 'scss', 'sql', 'svelte', 'terraform', 'toml',
'tsx', 'typescript', 'vim', 'vimdoc', 'vue', 'yaml', 'zig',
},
},
},
}
-
Create
lua/config/options.lua
and set any Neovim/RafiVim/LazyVim features: (Default values are shown)-- Auto format on-save vim.g.autoformat = false -- Elite-mode (hjkl mode. arrow-keys resize window) vim.g.elite_mode = false -- When enabled, 'q' closes any window vim.g.window_q_mapping = true
-
You can override LazyVim options. For example in
lua/plugins/core.lua
:return { { 'LazyVim/LazyVim', opts = { icons = { diagnostics = { Error = 'ο', Warn = 'ο±', Info = 'ο', }, status = { diagnostics = { error = 'E', warn = 'W', info = 'I', hint = 'H', }, }, }, }, }, }
-
You can override lazy.nvim (package-manager) global options. Create
lua/config/setup.lua
and return this function:lazy_opts()
β override LazyVim setup options
For example:
local M = {} ---@return table function M.lazy_opts() return { -- See https://github.com/folke/lazy.nvim/#%EF%B8%8F-configuration concurrency = jit.os:find('Windows') and (vim.uv.available_parallelism() * 2) or nil, } end return M
-
You can completely override lazy.nvim setup by creating
lua/config/lazy.lua
to replacelua/rafi/config/lazy.lua
with your own procedure.
Override server options with nvim-lspconfig plugin, for example:
{
'neovim/nvim-lspconfig',
opts = {
servers = {
yamlls = {
filetypes = { 'yaml', 'yaml.ansible', 'yaml.docker-compose' },
},
lua_ls = {
settings = {
Lua = {
workspace = { checkThirdParty = false },
completion = { callSnippet = 'Replace' },
},
},
},
},
}
}
- Plugin management with cache and lazy loading for speed
- Auto-completion with Language-Server Protocol (LSP)
- Project-aware tabline
- Extensive syntax highlighting with nvim-treesitter.
Note that 95% of the plugins are lazy-loaded.
List of plugins (π Click to expand/collapse)
Name | Description |
---|---|
neovim/nvim-lspconfig | Quickstart configurations for the Nvim LSP client |
williamboman/mason.nvim | Portable package manager for Neovim |
williamboman/mason-lspconfig.nvim | Mason extension for easier lspconfig integration |
stevearc/conform.nvim | Lightweight yet powerful formatter plugin |
mfussenegger/nvim-lint | Asynchronous linter plugin |
Name | Description |
---|---|
folke/lazy.nvim | Modern plugin manager for Neovim |
nmac427/guess-indent.nvim | Automatic indentation style detection |
tweekmonster/helpful.vim | Display vim version numbers in docs |
lambdalisue/suda.vim | An alternative sudo for Vim and Neovim |
folke/persistence.nvim | Simple lua plugin for automated session management |
mbbill/undotree | Ultimate undo history visualizer |
folke/flash.nvim | Search labels, enhanced character motions |
haya14busa/vim-edgemotion | Jump to the edge of block |
folke/zen-mode.nvim | Distraction-free coding for Neovim |
folke/todo-comments.nvim | Highlight, list and search todo comments in your projects |
folke/trouble.nvim | Pretty lists to help you solve all code diagnostics |
akinsho/toggleterm.nvim | Persist and toggle multiple terminals |
[hedyhli/outline.nvim] | Code outline sidebar powered by LSP |
s1n7ax/nvim-window-picker | Fancy Window picker |
dnlhc/glance.nvim | Pretty window for navigating LSP locations |
MagicDuck/grug-far.nvim | Search/replace in multiple files |
Name | Description |
---|---|
hrsh7th/nvim-cmp | Completion plugin for neovim written in Lua |
hrsh7th/cmp-nvim-lsp | nvim-cmp source for neovim builtin LSP client |
hrsh7th/cmp-buffer | nvim-cmp source for buffer words |
hrsh7th/cmp-path | nvim-cmp source for path |
hrsh7th/cmp-emoji | nvim-cmp source for emoji |
rafamadriz/friendly-snippets | Preconfigured snippets for different languages |
windwp/nvim-autopairs | Powerful auto-pair plugin with multiple characters support |
echasnovski/mini.surround | Fast and feature-rich surround actions |
JoosepAlviste/nvim-ts-context-commentstring | Set the commentstring based on the cursor location |
numToStr/Comment.nvim | Powerful line and block-wise commenting |
echasnovski/mini.splitjoin | Split and join arguments |
echasnovski/mini.trailspace | Trailing whitespace highlight and remove |
AndrewRadev/linediff.vim | Perform diffs on blocks of code |
AndrewRadev/dsf.vim | Delete surrounding function call |
echasnovski/mini.ai | Extend and create a /i textobjects |
folke/lazydev.nvim | Faster LuaLS setup |
Bilal2453/luvit-meta | Manage libuv types with lazy |
Name | Description |
---|---|
rafi/theme-loader.nvim | Use last-used colorscheme |
rafi/neo-hybrid.vim | Modern dark colorscheme, hybrid improved |
rafi/awesome-colorschemes | Awesome color-schemes |
Name | Description |
---|---|
lewis6991/gitsigns.nvim | Git signs written in pure lua |
sindrets/diffview.nvim | Tabpage interface for cycling through diffs |
NeogitOrg/neogit | Magit clone for Neovim |
FabijanZulj/blame.nvim | Git blame visualizer |
rhysd/git-messenger.vim | Reveal the commit messages under the cursor |
ruifm/gitlinker.nvim | Browse git repositories |
rhysd/committia.vim | Pleasant editing on Git commit messages |
Name | Description |
---|---|
hoob3rt/lualine.nvim | Statusline plugin written in pure lua |
nvim-neo-tree/neo-tree.nvim | File explorer written in Lua |
nvim-telescope/telescope.nvim | Find, Filter, Preview, Pick. All lua. |
jvgrootveld/telescope-zoxide | Telescope extension for Zoxide |
rafi/telescope-thesaurus.nvim | Browse synonyms for a word |
nvim-lua/plenary.nvim | Lua functions library |
Name | Description |
---|---|
nvim-treesitter/nvim-treesitter | Nvim Treesitter configurations and abstraction layer |
nvim-treesitter/nvim-treesitter-textobjects | Textobjects using treesitter queries |
RRethy/nvim-treesitter-endwise | Wisely add "end" in various filetypes |
windwp/nvim-ts-autotag | Use treesitter to auto close and auto rename html tag |
andymass/vim-matchup | Modern matchit and matchparen |
iloginow/vim-stylus | Better vim plugin for stylus |
mustache/vim-mustache-handlebars | Mustache and handlebars syntax |
lifepillar/pgsql.vim | PostgreSQL syntax and indent |
MTDL9/vim-log-highlighting | Syntax highlighting for generic log files |
reasonml-editor/vim-reason-plus | Reason syntax and indent |
Name | Description |
---|---|
echasnovski/mini.icons | Icon provider |
MunifTanjim/nui.nvim | UI Component Library |
rcarriga/nvim-notify | Fancy notification manager |
stevearc/dressing.nvim | Improve the default vim-ui interfaces |
akinsho/bufferline.nvim | Snazzy tab/bufferline |
folke/noice.nvim | Replaces the UI for messages, cmdline and the popupmenu |
SmiteshP/nvim-navic | Shows your current code context in winbar/statusline |
chentau/marks.nvim | Interacting with and manipulating marks |
lukas-reineke/indent-blankline.nvim | Visually display indent levels |
echasnovski/mini.indentscope | Visualize and operate on indent scope |
folke/which-key.nvim | Create key bindings that stick |
tenxsoydev/tabs-vs-spaces.nvim | Hint and fix deviating indentation |
t9md/vim-quickhl | Highlight words quickly |
kevinhwang91/nvim-bqf | Better quickfix window |
List of extras (π Click to expand/collapse)
You can view all LazyVim's extras at www.lazyvim.org/extras.
These plugins aren't enabled by default. You'll have to install them using
:LazyExtras
and installing with x. (Or import them using specs)
See Extend: Plugins on how to add plugins and examples.
Following are extra-extras available with Rafi's Neovim on-top of LazyVim's:
Spec: rafi.plugins.extras.coding.<name>
Name | Repository | Description |
---|---|---|
align |
echasnovski/mini.align | Align text interactively |
chainsaw |
chrisgrieser/nvim-chainsaw | Create log statements on the fly |
editorconfig |
sgur/vim-editorconfig | EditorConfig plugin written entirely in Vimscript |
emmet |
mattn/emmet-vim | Provides support for expanding abbreviations alΓ‘ emmet |
luasnip |
L3MON4D3/LuaSnip saadparwaiz1/cmp_luasnip | Snippet Engine and cmp source |
mini-pairs |
echasnovski/mini.pairs | Automatically manage character pairs |
neogen |
danymat/neogen | Annotation generator |
sandwich |
machakann/vim-sandwich | Search, select, and edit sandwich text objects |
Spec: rafi.plugins.extras.colorscheme.<name>
Name | Repository | Description |
---|---|---|
nordic |
AlexvZyl/nordic.nvim | Nord for Neovim, but warmer and darker |
tokyonight |
folke/tokyonight.nvim | Clean, dark Neovim theme |
kanagawa |
rebelot/kanagawa.nvim | Inspired by the colors of the famous painting by Katsushika Hokusai |
onedarkpro |
olimorris/onedarkpro.nvim | OneDarkPro theme |
nightfox |
EdenEast/nightfox.nvim | Highly customizable theme |
oxocarbon |
nyoom-engineering/oxocarbon.nvim | Dark and light theme inspired by IBM Carbon |
bamboo |
ribru17/bamboo.nvim | Warm green theme |
catppuccin |
catppuccin/nvim | Soothing pastel theme |
Spec: rafi.plugins.extras.editor.<name>
Name | Repository | Description |
---|---|---|
anyjump |
pechorin/any-jump.vim | Jump to any definition and references without overhead |
flybuf |
glepnir/flybuf.nvim | List buffers in a float window |
harpoon |
ThePrimeagen/harpoon | Marks for navigating your project |
mini-visits |
echasnovski/mini.visits | Track and reuse file system visits |
rest |
rest-nvim/rest.nvim | Fast Neovim http client written in Lua |
sidebar |
sidebar-nvim/sidebar.nvim | Generic and modular lua sidebar |
ufo |
kevinhwang91/nvim-ufo | Make folds look modern and keep a high performance |
Spec: rafi.plugins.extras.git.<name>
Name | Repository | Description |
---|---|---|
cmp-git |
petertriho/cmp-git | Git source for nvim-cmp |
fugitive |
tpope/vim-fugitive | Git client, including junegunn/gv.vim |
Spec: rafi.plugins.extras.lang.<name>
Name | Description |
---|---|
ansible |
imports lazyvim.plugins.extras.lang.ansible , add syntax and pearofducks/ansible-vim |
go |
imports lazyvim.plugins.extras.lang.go , add tools, patterns, etc. |
helm |
imports lazyvim.plugins.extras.lang.helm , add filetype patterns |
kubernetes |
imports lazyvim.plugins.extras.lang.yaml , add filetype patterns and ramilito/kubectl.nvim |
markdown |
imports lazyvim.plugins.extras.lang.markdown , disable headlines, add mzlogin/vim-markdown-toc |
python |
imports lazyvim.plugins.extras.lang.python , add syntax and filetype patterns |
tmux |
syntax, completion andersevenrud/cmp-tmux, keymaps christoomey/tmux-navigator |
Spec: rafi.plugins.extras.lsp.<name>
Key | Name | Description |
---|---|---|
gtd |
hrsh7th/nvim-gtd | LSP's go-to definition plugin |
lightbulb |
kosayoda/nvim-lightbulb | VSCode π‘ for neovim's built-in LSP |
yaml-companion |
yaml-companion.nvim | Get, set and autodetect YAML schemas in your buffers |
Spec: rafi.plugins.extras.org.<name>
Key | Name | Description |
---|---|---|
calendar |
itchyny/calendar.vim | Calendar application |
kiwi |
serenevoid/kiwi.nvim | Stripped down VimWiki |
telekasten |
renerocksai/telekasten.nvim | Manage text-based, markdown zettelkasten or wiki with telescope |
vimwiki |
vimwiki/vimwiki | Personal Wiki for Vim |
zk-nvim |
zk-org/zk-nvim | Extension for the zk plain text note-taking assistant |
Spec: rafi.plugins.extras.treesitter.<name>
Key | Name | Description |
---|---|---|
treesj |
Wansmer/treesj | Splitting and joining blocks of code |
Spec: rafi.plugins.extras.ui.<name>
Key | Name | Description |
---|---|---|
alpha |
goolord/alpha-nvim | Fast and fully programmable greeter |
barbecue |
utilyre/barbecue.nvim | VS Code like winbar |
bookmarks |
tomasky/bookmarks.nvim | Bookmarks plugin with global file store |
ccc |
uga-rosa/ccc.nvim | Super powerful color picker/colorizer plugin |
cursorword |
itchyny/cursorword | Underlines word under cursor |
cybu |
ghillb/cybu.nvim | Cycle buffers with a customizable notification window |
deadcolumn |
Bekaboo/deadcolumn.nvim | Show colorcolumn dynamically |
goto-preview |
rmagatti/goto-preview | Preview definitions using floating windows |
headlines |
lukas-reineke/headlines.nvim | Adds horizontal highlights for headlines and code background. |
illuminate |
RRethy/vim-illuminate | Highlights other uses of the word under the cursor |
incline |
b0o/incline.nvim | Floating statuslines |
marks |
chentoast/marks.nvim | Interacting with and manipulating marks |
mini-clue |
echasnovski/mini.clue | Show next key clues |
mini-map |
echasnovski/mini.map | Window with buffer text overview, scrollbar and highlights |
symbols-outline |
simrat39/symbols-outline.nvim | Tree like view for symbols using LSP |
LazyVim is imported in specs (see lua/rafi/config/lazy.lua) Therefore, you can import any of the "Extras" plugins defined at LazyVim/LazyVim and documented in lazyvim.org.
These are only highlights:
lazyvim.plugins.extras.lang.json
lazyvim.plugins.extras.lang.markdown
lazyvim.plugins.extras.lang.terraform
lazyvim.plugins.extras.lang.typescript
- Spec:
lazyvim.plugins.extras.dap.<name>
- See lazyvim/plugins/extras/dap
- Spec:
lazyvim.plugins.extras.test.<name>
- See lazyvim/plugins/extras/test
Note that,
- Leader key set as Space
- Local-Leader key set as ; and used for navigation and search (Telescope and Neo-tree)
- Disable β β β β in normal mode by enabling
elite_mode
.
Key-mappings (π Click to expand/collapse)
Modes: π=normal π=visual π=select π=insert π=operator π=commandKey | Mode | Action | Plugin or Mapping |
---|---|---|---|
j / k | π π | Cursor moves through display-lines | g j/k |
gj / gk | π π π | Jump to edge upward/downward | haya14busa/vim-edgemotion |
gh / gl | π π | Easier line-wise movement | g^ g$ |
zl / zh | π | Scroll horizontally and vertically wider | z4 l/h |
Ctrl+j | π | Move to split below | <C-w>j or christoomey/tmux-navigator |
Ctrl+k | π | Move to upper split | <C-w>k or christoomey/tmux-navigator |
Ctrl+h | π | Move to left split | <C-w>h or christoomey/tmux-navigator |
Ctrl+l | π | Move to right split | <C-w>l or christoomey/tmux-navigator |
Return | π | Toggle fold under cursor | za |
Shift+Return | π | Focus the current fold by closing all others | zMzv |
Ctrl+f | π | Move cursor forwards in command | Right |
Ctrl+b | π | Move cursor backwards in command | Left |
Ctrl+h | π | Move cursor to the beginning in command | Home |
Ctrl+l | π | Move cursor to the end in command | End |
Ctrl+Tab | π | Go to next tab | :tabnext |
Ctrl+ShiftTab | π | Go to previous tab | :tabprevious |
Alt+j or ] | π | Go to next tab | :tabnext |
Alt+k or [ | π | Go to previous tab | :tabprevious |
Alt+{ | π | Move tab backward | :-tabmove |
Alt+} | π | Move tab forward | :+tabmove |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Space+Space | π π | Toggle visual-line mode | V / Escape |
v / V | π | Increment/shrink selection | nvim-treesitter |
vsp | π | Select last paste | config/keymaps.lua |
sg | π | Replace within selected area | config/keymaps.lua |
Ctrl+r | π | Replace selection with step-by-step confirmation | config/keymaps.lua |
> / < | π | Indent and re-select | config/keymaps.lua |
Tab / Shift+Tab | π | Indent and re-select | config/keymaps.lua |
I / gI / A | π | Force blockwise operation | config/keymaps.lua |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
], or [, | π | Next/previous parameter | akinsho/bufferline.nvim |
]q or [q | π | Next/previous on quick-fix | :cnext / :cprev |
]a or [a | π | Next/previous on location-list | :lnext / :lprev |
]d or [d | π | Next/previous diagnostics | config/keymaps.lua |
]e or [e | π | Next/previous error | config/keymaps.lua |
]w or [w | π | Next/previous warning | config/keymaps.lua |
]b or [b | π | Next/previous buffer | akinsho/bufferline.nvim |
]f or [f | π | Next/previous function start | echasnovski/mini.ai |
]F or [F | π | Next/previous function end | echasnovski/mini.ai |
]c or [c | π | Next/previous class start | echasnovski/mini.ai |
]C or [C | π | Next/previous class end | echasnovski/mini.ai |
]m or [m | π | Next/previous method start | echasnovski/mini.ai |
]M or [M | π | Next/previous method end | echasnovski/mini.ai |
]g or [g | π | Next/previous Git hunk | lewis6991/gitsigns.nvim |
]i or [i | π | Next/previous indent scope | echasnovski/mini.indentscope |
]t or [t | π | Next/previous TODO | folke/todo-comments.nvim |
]z or [z | π | Next/previous whitespace error | config/keymaps.lua |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Space+bd | π | Delete buffer | LazyVim.ui.bufremove |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
p or P | π | Paste without yank | :let @+=@0 |
Space+y | π | Copy relative file-path to clipboard | config/keymaps.lua |
Space+Y | π | Copy absolute file-path to clipboard | config/keymaps.lua |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Tab / Shift-Tab | π π | Navigate/open completion-menu | nvim-cmp |
Tab / Shift-Tab | π π | Navigate snippet placeholders | L3MON4D3/LuaSnip |
Ctrl+Space | π | Open completion menu | nvim-cmp |
Enter | π | Select completion item or expand snippet | nvim-cmp |
Shift+Enter | π | Select and replace with completion item | nvim-cmp |
Ctrl+n/p | π | Movement in completion pop-up | nvim-cmp |
Ctrl+f/b | π | Scroll documentation | nvim-cmp |
Ctrl+d/u | π | Scroll candidates | nvim-cmp |
Ctrl+e | π | Abort selection and close pop-up | nvim-cmp |
Ctrl+l | π | Expand snippet at cursor | L3MON4D3/LuaSnip |
Ctrl+c | π | Close completion menu | nvim-cmp |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
gr | π | Go to references | plugins/lsp/keymaps.lua |
gR | π | List references with Trouble | folke/trouble.nvim |
gd | π | Go to definition | plugins/lsp/keymaps.lua |
gD | π | Go to declaration | plugins/lsp/keymaps.lua |
gI | π | Go to implementation | plugins/lsp/keymaps.lua |
gy | π | Go to type definition | plugins/lsp/keymaps.lua |
K | π | Show hover help or collapsed fold | plugins/lsp/keymaps.lua |
gK | π | Show signature help | plugins/lsp/keymaps.lua |
Space cl | π | Open LSP info window | plugins/lsp/keymaps.lua |
Space cr | π | Rename | plugins/lsp/keymaps.lua |
Space ce | π | Open diagnostics window | plugins/lsp/keymaps.lua |
Space co | π | Formatter menu selection | plugins/lsp/keymaps.lua |
Space ca | π π | Code action | plugins/lsp/keymaps.lua |
Space cA | π | Source action | plugins/lsp/keymaps.lua |
Space chi | π | LSP incoming calls | plugins/lsp/keymaps.lua |
Space cho | π | LSP outgoing calls | plugins/lsp/keymaps.lua |
Space ud | π | Toggle buffer diagnostics | plugins/lsp/keymaps.lua |
Space fwa | π | Add workspace folder | plugins/lsp/keymaps.lua |
Space fwr | π | Remove workspace folder | plugins/lsp/keymaps.lua |
Space fwl | π | List workspace folders | plugins/lsp/keymaps.lua |
gpd | π | Glance definitions | dnlhc/glance.nvim |
gpr | π | Glance references | dnlhc/glance.nvim |
gpy | π | Glance type definitions | dnlhc/glance.nvim |
gpi | π | Glance implementations | dnlhc/glance.nvim |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Space xt | π | List TODO with Trouble | folke/todo-comments.nvim |
Space xT | π | List TODO/FIXME with Trouble | folke/todo-comments.nvim |
Space st | π | Select TODO with Telescope | folke/todo-comments.nvim |
Space sT | π | Select TODO/FIXME with Telescope | folke/todo-comments.nvim |
Space xx | π | Toggle Trouble | folke/trouble.nvim |
Space xd | π | Toggle Trouble document | folke/trouble.nvim |
Space xw | π | Toggle Trouble workspace | folke/trouble.nvim |
Space xq | π | Toggle Quickfix via Trouble | folke/trouble.nvim |
Space xl | π | Toggle Locationlist via Trouble | folke/trouble.nvim |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Ctrl+q | π | Start recording macro | q |
Space cf | π π | Format | [plugins/formatting.lua] |
Space cF | π π | Format injected langs | [plugins/formatting.lua] |
Space cc | π | Generate doc annotations | danymat/neogen |
Shift+Return | π | Start new line from any cursor position | <C-o>o |
] Space | π | Add new line below | o<Esc> |
[ Space | π | Add new line above | O<Esc> |
gc | π π | Comment prefix | numToStr/Comment.nvim |
gcc | π π | Toggle comments | numToStr/Comment.nvim |
Space+j or k | π π | Move lines down/up | :m β¦ |
Space+v | π π | Toggle line-wise comments | numToStr/Comment.nvim |
Space+V | π π | Toggle block-wise comments | numToStr/Comment.nvim |
Space+dd | π π | Duplicate line or selection | config/keymaps.lua |
Space+cw | π | Remove all spaces at EOL | echasnovski/mini.trailspace |
sj / sk | π | Join/split arguments | echasnovski/mini.splitjoin |
dsf / csf | π | Delete/change surrounding function call | AndrewRadev/dsf.vim |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
* / # | π π | Search partial words | g* / g# |
g* / g# | π π | Search whole-word forward/backward | * / # |
Escape | π | Clear search highlight | :nohlsearch |
Backspace | π | Match bracket | % |
Space+bf | π | Diff current windows in tab | windo diffthis |
ss | π π π | Flash jump | folke/flash.nvim |
S | π π π | Flash treesitter | folke/flash.nvim |
r | π | Flash remote | folke/flash.nvim |
R | π π | Flash treesitter search | folke/flash.nvim |
Ctrl+s | π | Toggle flash in search input | folke/flash.nvim |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
g! | π | Read vim command into buffer | :put=execute('β΄') |
Ctrl+n / p | π | Switch history search pairs | β / β |
β / β | π | Switch history search pairs | Ctrl n /p |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Space+cd | π | Switch tab to the directory of current buffer | :tcd %:p:h |
Space+w | π | Write buffer to file | :write |
Ctrl+s | π π π | Write buffer to file | :write |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
Space ub | π | Toggle structure scope in winbar | SmiteshP/nvim-navic |
Space uf | π | Toggle format on Save | config/keymaps.lua |
Space us | π | Toggle spell-checker | :setlocal spell! |
Space ul | π | Toggle line numbers | :setlocal nonumber! |
Space uL | π | Toggle relative line numbers | :setlocal norelativenumber! |
Space uw | π | Toggle wrap | :setlocal wrap! β¦ |
Space ue | π | Toggle indentation lines | lukas-reineke/indent-blankline.nvim |
Space uh | π | Toggle inlay-hints | config/keymaps.lua |
Space ui | π | Show highlight groups for word | vim.show_pos |
Space up | π | Disable auto-pairs | windwp/nvim-autopairs |
Space ur | π | Redraw, clear hlsearch, and diff update | config/keymaps.lua |
Space un | π | Dismiss all notifications | rcarriga/nvim-notify |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
q | π | Quit window (if last window, quit nvim) | :quit |
Ctrl+x | π | Rotate window placement | C-w x |
sp | π | Choose a window to edit | s1n7ax/nvim-window-picker |
sw | π | Switch editing window with selected | s1n7ax/nvim-window-picker |
sv | π | Horizontal split | :split |
sg | π | Vertical split | :vsplit |
st | π | Open new tab | :tabnew |
so | π | Close other windows | :only |
sb | π | Previous buffer | :b# |
sc | π | Close current buffer | :close |
sd | π | Delete buffer | :bdelete |
sq | π | Quit window | :quit |
sx | π | Delete buffer, leave blank window | :enew β bdelete |
sz | π | Toggle window zoom | :vertical resize β resize |
sh | π | Toggle colorscheme background=dark/light | :set background β¦ |
Key | Mode | Action | Plugin or Mapping |
---|---|---|---|
;+c | π | Open context-menu | lua/rafi/util/contextmenu.lua |
gCtrl+o | π | Navigate to previous file on jumplist | util/edit.lua |
gCtrl+i | π | Navigate to next file on jumplist | util/edit.lua |
Ctrl+/ | π | Toggle terminal | akinsho/toggleterm.nvim |
Space l | π | Open Lazy | folke/lazy.nvim |
Space o | π | Open Outline side | [hedyhli/outline.nvim] |
Space ? | π | Open the macOS dictionary on current word | :!open dict:// |
Space cp | π | Toggle Markdown preview | iamcco/markdown-preview.nvim |
Space mc | π | Open color-picker | uga-rosa/ccc.nvim |
Space tt | π | Open terminal (root dir) | config/keymaps.lua |
Space tT | π | Open terminal (cwd) | config/keymaps.lua |
Space tg | π | Open Lazygit (root dir) | config/keymaps.lua |
Space tG | π | Open Lazygit (cwd) | config/keymaps.lua |
Space gu | π | Open undo-tree | mbbill/undotree |
Space gb | π | Git blame | FabijanZulj/blame.nvim |
Space gB | π | Git blame in window | FabijanZulj/blame.nvim |
Space gm | π | Reveal commit under cursor | rhysd/git-messenger.vim |
Space go | π π | Open SCM detailed URL in browser | ruifm/gitlinker.nvim |
Space mg | π | Open Neogit | NeogitOrg/neogit |
Space ml | π | Append modeline to end of buffer | config/keymaps.lua |
Space mda | π | Sequentially mark region for diff | AndrewRadev/linediff.vim |
Space mdf | π | Mark region for diff and compare if more than one | AndrewRadev/linediff.vim |
Space mds | π | Shows the comparison for all marked regions | AndrewRadev/linediff.vim |
Space mdr | π | Removes the signs denoting the diff regions | AndrewRadev/linediff.vim |
Space mh | π | Open HTTP Rest UI | rest-nvim/rest.nvim |
Space mt | π π | Toggle highlighted word | t9md/vim-quickhl |
Space mo | π | Update Markdown TOC | mzlogin/vim-markdown-toc |
Space zz | π | Toggle distraction-free writing | folke/zen-mode.nvim |
See echasnovski/mini.surround for more mappings and usage information.
Key | Mode | Action |
---|---|---|
sa & movement | π π | Add surrounding |
cs & movement | π | Replace surrounding |
ds & movement | π | Delete surrounding |
gzf & movement | π | Find surrounding (to the right) |
gzF & movement | π | Find surrounding (to the left) |
gzh & movement | π | Highlight surrounding |
gzn & movement | π | Update neighbor lines |
See lewis6991/gitsigns.nvim for more mappings and usage information.
Key | Mode | Action |
---|---|---|
]g or ]g | π | Next/previous Git hunk |
gs | π | Preview hunk |
Space hp | π | Preview hunk inline |
Space hb | π | Blame line |
Space hs | π π | Stage hunk |
Space hr | π π | Reset hunk |
Space hu | π | Undo stage hunk |
Space hS | π | Stage buffer |
Space hR | π | Reset buffer |
Space hd | π | Diff against the index |
Space hD | π | Diff against the last commit |
Space hw | π | Toggle word diff |
Space hl | π | Publish hunks to location-list |
Space htb | π | Toggle git current line blame |
Space htd | π | Toggle git deleted |
Space htw | π | Toggle git word diff |
Space htl | π | Toggle git line highlight |
Space htn | π | Toggle git number highlight |
Space hts | π | Toggle git signs |
ih | π | Select inner hunk operator |
See sindrets/diffview.nvim for more mappings and usage information.
Key | Mode | Action |
---|---|---|
Space gd | π | Diff view file history |
Space gv | π | Diff view open |
Β | ||
Within diffview "view" window | Β | |
Β | ||
Tab / Shift+Tab | π | Select next/previous entry |
; a | π | Focus file |
; e | π | Toggle files panel |
Β | ||
Within diffview "file" panel | Β | |
Β | ||
q | π | Close |
h | π | Previous entry |
o | π | Focus entry |
gf | π | Open file |
sg | π | Open file in split |
st | π | Open file in new tab |
Ctrl+r | π | Refresh files |
; e | π | Toggle panel |
Β | ||
Within diffview "history" panel | Β | |
Β | ||
q | π | Close diffview |
o | π | Focus entry |
O | π | Show options |
See telescope.nvim for more mappings and usage information.
Key | Mode | Action |
---|---|---|
;r | π | Results of the previous picker |
;p | π | List of the previous pickers |
;f | π | File search |
;g | π | Grep search |
;b | π | Buffers |
;h | π | Highlights |
;j | π | Jump points |
;m | π | Marks |
;o | π | Vim options |
;t | π | LSP workspace symbols |
;v | π π | Yank history |
;n | π | Plugins |
;k | π | Thesaurus |
;u | π | Spelling suggestions |
;s | π | Sessions |
;x | π | Old files |
;w | π | Zk notes |
;z | π | Zoxide directories |
;; | π | Command history |
;: | π | Commands |
;/ | π | Search history |
;dd | π | LSP definitions |
;di | π | LSP implementations |
;dr | π | LSP references |
;da | π π | LSP code actions |
Space / | π | Buffer fuzzy find |
Space gs | π | Git status |
Space gr | π | Git branches |
Space gl | π | Git commits |
Space gL | π | Git buffer commits |
Space gh | π | Git stashes |
Space gt | π | Find symbols matching word under cursor |
Space gf | π | Find files matching word under cursor |
Space gg | π π | Grep word under cursor |
Space sc | π | Colorschemes |
Space sd | π | Document diagnostics |
Space sD | π | Workspace diagnostics |
Space sh | π | Help tags |
Space sk | π | Key-maps |
Space sm | π | Man pages |
Space ss | π | LSP document symbols |
Space sS | π | LSP workspace symbols |
Space st | π | Todo list |
Space sT | π | Todo/Fix/Fixme list |
Space sw | π | Grep string |
Β | ||
Within Telescope window | Β | |
Β | ||
? | π | Keymaps help screen |
Ctrl+Space | π | Move from none fuzzy search to fuzzy |
jj or Escape | π | Leave Insert mode |
i | π | Enter Insert mode (filter input) |
q or Escape | π | Exit Telescope |
Tab or Shift+Tab | π π | Next/previous candidate |
Ctrl+d/u | π π | Scroll down/upwards |
Ctrl+f/b | π π | Scroll preview down/upwards |
Ctrl+j/k | π π | Scroll preview vertically |
Ctrl+h/l | π π | Scroll preview horizontally |
J or K | π | Select candidates up/downwards |
st | π | Open in a new tab |
sg | π | Open in a vertical split |
sv | π | Open in a split |
* | π | Toggle selection |
u | π | Drop all |
w | π | Smart send to quickfix list |
e | π | Send to quickfix list |
Ctrl+q | π | Send to quickfix list |
dd | π | Delete entry (buffer list) |
! | π | Edit in command line |
See nvim-neo-tree/neo-tree.nvim for more mappings and usage information.
Key | Mode | Action |
---|---|---|
fe / Spacee | π | Toggle file explorer (root) |
fE / SpaceE | π | Toggle file explorer (cwd) |
ge | π | Open Git explorer |
be | π | Open Buffer explorer |
xe | π | Open Document explorer |
;a | π | Focus current file in file-explorer |
Β | ||
Within Neo-Tree window | Β | |
Β | ||
g? | π | Show help |
q | π | Close window |
j or k | π | Move up and down the tree |
Tab or Shift+Tab | π | Next or previous source |
]g or [g | π | Jump to next/previous git modified node |
l | π | Toggle collapse/expand directory or open file |
h | π | Collapse directory tree |
Return | π | Select window to open file |
gr | π | Grep in current position |
gf | π | Find files in current position |
. | π | Set as root directory |
Backspace | π | Change into parent directory |
sv or S | π | Open file in a horizontal split |
sg or s | π | Open file in a vertical split |
st or t | π | Open file in new tab |
p | π | Preview toggle |
a | π | Create new directories and/or files |
N | π | Create new directory |
r | π | Rename file or directory |
dd | π | Delete |
c / m | π | Copy/move |
y / x / P | π | Clipboard copy/cut/paste |
! | π | Filter |
D | π | Filter directories |
# | π | Fuzzy sorter |
F | π | Filter on submit |
Ctrl+c | π | Clear filter |
Ctrl+r or R | π | Refresh |
fi / fe | π | Include/exclude |
H | π | Toggle hidden files |
e | π | Toggle auto-expand window width |
w | π | Toggle window width |
z | π | Collapse all nodes |
See chentau/marks.nvim for more mappings and usage information.
Key | Mode | Action |
---|---|---|
m, | π | Set the next available alphabetical (lowercase) mark |
m; | π | Toggle the next available mark at the current line |
m a-z | π | Set mark |
dm a-z | π | Remove mark |
dm- | π | Delete all marks on the current line |
dm<Space> | π | Delete all marks in the current buffer |
m] | π | Move to next mark |
m[ | π | Move to previous mark |
m: a-z | π | Preview mark |
m/ | π | List marks from all opened buffers |
See zk-org/zk-nvim and zk for more mappings and usage information.
Key | Mode | Action |
---|---|---|
Space+zn | π | Ask for title and create new note |
Space+zo | π | Browse notes sorted by modification time |
Space+zt | π | Browse tags |
Space+zf | π | Search notes |
Space+zf | π | Search notes with selection |
Space+zb | π | Show backlinks |
Space+zl | π | Show links |