Post

RNvim Neovim Configuration Information

Personal Neovim configuration of Rory Nesbitt, author of dotfyle-cli

  • Install and initialize: lazyman -w RNvim
  • Configuration category: Personal
  • Base configuration: Custom
  • Plugin manager: Lazy
  • Installation location: ~/.config/nvim-RNvim

Git repository

https://github.com/RoryNesbitt/RNvim

Dotfyle entry

https://dotfyle.com/RoryNesbitt/rnvim

Lazy managed plugins

RNvim Keymaps

Normal mode keymaps

DescriptionRemove trailing space
Description 
Left hand side w
Right hand side<Cmd>%s/\s\+$//<CR>
DescriptionFuzzy Search
Description 
Left hand side /
Right hand side 
DescriptionJump to file
Description 
Left hand side j
Right hand side<Cmd>Telescope find_files<CR>
DescriptionSubstitute File
Description 
Left hand side S
Right hand side:%s//gI<Left><Left><Left>
DescriptionSubstitute Line
Description 
Left hand side s
Right hand side:s/<C-R><C-W>//gI<Left><Left><Left>
DescriptionFile Browser
Description 
Left hand side e
Right hand side<Cmd>edit .<CR>
DescriptionNew tab
Description 
Left hand side c
Right hand side<Cmd>tabedit .<CR>
DescriptionNeovim Terminal
Description 
Left hand side <CR>
Right hand side<Cmd>vsp | terminal<CR>
DescriptionHorizontal Split
Description 
Left hand side h
Right hand side<Cmd>sp .<CR>
DescriptionVertical Split
Description 
Left hand side v
Right hand side<Cmd>vsp .<CR>
DescriptionNull-ls Info
Description 
Left hand side ni
Right hand side<Cmd>NullLsInfo<CR>
DescriptionFormat Buffer
Description 
Left hand side nf
Right hand side 
DescriptionRename Object
Description 
Left hand side r
Right hand side 
DescriptionShow References
Description 
Left hand side lr
Right hand side<Cmd>Telescope lsp_references<CR>
DescriptionShow Diagnostics
Description 
Left hand side ll
Right hand side<Cmd>Telescope diagnostics<CR>
DescriptionCode Actions
Description 
Left hand side la
Right hand side 
DescriptionLSP Info
Description 
Left hand side li
Right hand side<Cmd>LspInfo<CR>
DescriptionOpen Mason
Description 
Left hand side m
Right hand side<Cmd>Mason<CR>
DescriptionZen Mode
Description 
Left hand side z
Right hand side<Cmd>TZAtaraxis<CR>
DescriptionFocus buffer
Description 
Left hand side f
Right hand side<Cmd>TZFocus<CR>
Description[Hydra] Git
Description 
Left hand side g
Right hand side 
Description[Hydra] Telescope
Description 
Left hand side t
Right hand side 
Description[Hydra] Debugging
Description 
Left hand side d
Right hand side 
Left hand side""
Right hand sidezto""""""<Esc><Left><Left>i
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Description 
Left hand side&
Right hand side:&&<CR>
DescriptionChange colourscheme
Description 
Left hand side,cc
Right hand side 
DescriptionChange wallpaper
Description 
Left hand side,cw
Right hand side 
DescriptionPASTE from Clipboard
Description 
Left hand side,P
Right hand side"+P
DescriptionDELETE to Clipboard
Description 
Left hand side,D
Right hand side"+D
DescriptionYANK to Clipboard
Description 
Left hand side,Y
Right hand side"+y$
DescriptionPaste from Clipboard
Description 
Left hand side,p
Right hand side"+p
DescriptionDelete to Clipboard
Description 
Left hand side,d
Right hand side"+d
DescriptionYank to Clipboard
Description 
Left hand side,y
Right hand side"+y
Description[Hydra] Spellcheck
Description 
Left hand side,s
Right hand side 
Left hand sideA
Right hand sidezzA
Left hand sideC
Right hand sidezzC
Left hand sideG
Right hand sideGzz
Left hand sideI
Right hand sidezzI
Left hand sideK
Right hand side 
Left hand sideN
Right hand sideNzz
Left hand sideO
Right hand sidezzO
Left hand sideS
Right hand sidezzS
Left hand sideU
Right hand side<C-R>
DescriptionNvim builtin
Description 
Left hand sideY
Right hand sidey$
DescriptionPrevious git hunk
Description 
Left hand side[g
Right hand side 
DescriptionPrevious
Description 
Left hand side[d
Right hand side 
Left hand side[%
Right hand side<Plug>(MatchitNormalMultiBackward)
DescriptionNext git hunk
Description 
Left hand side]g
Right hand side 
DescriptionNext
Description 
Left hand side]d
Right hand side 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
Left hand sidea
Right hand sidezza
Left hand sidec
Right hand sidezzc
DescriptionChange a surrounding pair, putting replacements on new lines
Description 
Left hand sidecS
Right hand side<Plug>(nvim-surround-change-line)
DescriptionChange a surrounding pair
Description 
Left hand sidecs
Right hand side<Plug>(nvim-surround-change)
DescriptionDelete a surrounding pair
Description 
Left hand sideds
Right hand side<Plug>(nvim-surround-delete)
DescriptionGAHH
Description 
Left hand sidegh
Right hand side 
DescriptionGo to Implementation
Description 
Left hand sidegi
Right hand side 
DescriptionGo to Declaration
Description 
Left hand sidegD
Right hand side 
DescriptionGo to Definition
Description 
Left hand sidegd
Right hand sidegdzz
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
Left hand sideg<M-n>
Right hand side:call multiple_cursors#select_all("n", 0)<CR>
Left hand sideg<C-N>
Right hand side:call multiple_cursors#new("n", 0)<CR>
DescriptionComment insert end of line
Description 
Left hand sidegcA
Right hand side 
DescriptionComment insert above
Description 
Left hand sidegcO
Right hand side 
DescriptionComment insert below
Description 
Left hand sidegco
Right hand side 
DescriptionComment toggle current block
Description 
Left hand sidegbc
Right hand side 
DescriptionComment toggle current line
Description 
Left hand sidegcc
Right hand side 
DescriptionComment toggle blockwise
Description 
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise)
DescriptionComment toggle linewise
Description 
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise)
Left hand sidei
Right hand sidezzi
Left hand siden
Right hand sidenzz
Left hand sideo
Right hand sidezzo
Left hand sideqZ
Right hand sideZ
Left hand sides
Right hand sidezzs
DescriptionTransparent Background
Description 
Left hand sidetb
Right hand side 
DescriptionAdd a surrounding pair around the current line, on new lines (normal mode)
Description 
Left hand sideySS
Right hand side<Plug>(nvim-surround-normal-cur-line)
DescriptionAdd a surrounding pair around a motion, on new lines (normal mode)
Description 
Left hand sideyS
Right hand side<Plug>(nvim-surround-normal-line)
DescriptionAdd a surrounding pair around the current line (normal mode)
Description 
Left hand sideyss
Right hand side<Plug>(nvim-surround-normal-cur)
DescriptionAdd a surrounding pair around a motion (normal mode)
Description 
Left hand sideys
Right hand side<Plug>(nvim-surround-normal)
Left hand side{
Right hand side{zz
Left hand side}
Right hand side}zz
Left hand side<C-S-L>
Right hand side<C-W>L
Left hand side<C-S-K>
Right hand side<C-W>K
Left hand side<C-S-J>
Right hand side<C-W>J
Left hand side<C-S-H>
Right hand side<C-W>H
Left hand side<C-U>
Right hand side<C-U>zz
Left hand side<C-D>
Right hand side<C-D>zz
Left hand side<S-ScrollWheelUp>
Right hand side<Cmd>keepj norm! {<CR>
Left hand side<S-ScrollWheelDown>
Right hand side<Cmd>keepj norm! }<CR>
Left hand side<ScrollWheelRight>
Right hand sidel
Left hand side<ScrollWheelUp>
Right hand sidek
Left hand side<ScrollWheelDown>
Right hand sidej
Left hand side<ScrollWheelLeft>
Right hand sideh
Left hand side<2-RightMouse>
Right hand side
Left hand side<RightMouse>
Right hand side
Left hand side<Right>
Right hand side
Left hand side<Left>
Right hand side
Left hand side<Down>
Right hand side
Left hand side<Up>
Right hand side
Left hand side<Plug>NetrwBrowseX
Right hand side:call netrw#BrowseX(netrw#GX(),netrw#CheckIfRemote(netrw#GX()))<CR>
Left hand side<Plug>(MatchitNormalMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>
Left hand side<Plug>(MatchitNormalMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>
Left hand side<Plug>(MatchitNormalBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'n')<CR>
Left hand side<Plug>(MatchitNormalForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'n')<CR>
DescriptionMove to previous reference
Description 
Left hand side<M-p>
Right hand side 
Left hand side<M-w>
Right hand side:silent VCoolIns ra<CR>
Left hand side<M-v>
Right hand side:silent VCoolIns h<CR>
Left hand side<M-r>
Right hand side:VCoolIns r<CR>
Left hand side<M-c>
Right hand side:VCoolor<CR>
Left hand side<M-h>
Right hand side<Cmd>lua require'tmux'.resize_left()<CR>
Left hand side<M-k>
Right hand side<Cmd>lua require'tmux'.resize_top()<CR>
Left hand side<M-l>
Right hand side<Cmd>lua require'tmux'.resize_right()<CR>
Left hand side<M-j>
Right hand side<Cmd>lua require'tmux'.resize_bottom()<CR>
Left hand side<C-J>
Right hand side<Cmd>lua require'tmux'.move_bottom()<CR>
Left hand side<C-H>
Right hand side<Cmd>lua require'tmux'.move_left()<CR>
Left hand side<C-K>
Right hand side<Cmd>lua require'tmux'.move_top()<CR>
Left hand side<Plug>(Hydra5_wait)r
Right hand side 
DescriptionRepeat fix for all instances
Description 
Left hand side<Plug>(Hydra5_wait)ra
Right hand side 
DescriptionSuggestions
Description 
Left hand side<Plug>(Hydra5_wait)s
Right hand side 
Left hand side<Plug>(Hydra5_wait)u
Right hand side 
DescriptionAdd as good
Description 
Left hand side<Plug>(Hydra5_wait)ag
Right hand side 
DescriptionBack
Description 
Left hand side<Plug>(Hydra5_wait)b
Right hand side 
Left hand side<Plug>(Hydra5_wait)<Esc>
Right hand side 
Left hand side<Plug>(Hydra5_wait)a
Right hand side 
DescriptionAdd as bad
Description 
Left hand side<Plug>(Hydra5_wait)ab
Right hand side 
DescriptionNavigate
Description 
Left hand side<Plug>(Hydra5_wait)[
Right hand side 
Left hand side<Plug>(Hydra5_wait)]
Right hand side 
DescriptionFix word Automatically
Description 
Left hand side<Plug>(Hydra5_wait)f
Right hand side 
Descriptionexit
Description 
Left hand side<Plug>(Hydra5_wait)q
Right hand side 
Left hand side<Plug>(Hydra5_wait)
Right hand side 
Left hand side<Plug>(Hydra2_wait)k
Right hand side 
Left hand side<Plug>(Hydra2_wait)p
Right hand side 
Descriptionlist all pickers
Description 
Left hand side<Plug>(Hydra2_wait)<CR>
Right hand side 
Left hand side<Plug>(Hydra2_wait)t
Right hand side 
Descriptionsearch in file
Description 
Left hand side<Plug>(Hydra2_wait)/
Right hand side 
Descriptionrecently opened files
Description 
Left hand side<Plug>(Hydra2_wait)o
Right hand side 
Descriptioncommand-line history
Description 
Left hand side<Plug>(Hydra2_wait);
Right hand side 
Descriptionexecute command
Description 
Left hand side<Plug>(Hydra2_wait)c
Right hand side 
Descriptionsearch history
Description 
Left hand side<Plug>(Hydra2_wait)?
Right hand side 
Descriptionexit
Description 
Left hand side<Plug>(Hydra2_wait)q
Right hand side 
Left hand side<Plug>(Hydra2_wait)g
Right hand side 
Left hand side<Plug>(Hydra2_wait)b
Right hand side 
Left hand side<Plug>(Hydra2_wait)f
Right hand side 
Left hand side<Plug>(Hydra2_wait)<Esc>
Right hand side 
Descriptionvim help
Description 
Left hand side<Plug>(Hydra2_wait)h
Right hand side 
Left hand side<Plug>(Hydra2_wait)
Right hand side 
DescriptionRepl
Description 
Left hand side<Plug>(Hydra1_wait)r
Right hand side 
DescriptionContinue
Description 
Left hand side<Plug>(Hydra1_wait)d
Right hand side 
Left hand side<Plug>(Hydra1_wait)<Esc>
Right hand side 
DescriptionConditional breakpoint
Description 
Left hand side<Plug>(Hydra1_wait)B
Right hand side 
DescriptionStep out
Description 
Left hand side<Plug>(Hydra1_wait)O
Right hand side 
DescriptionLog point
Description 
Left hand side<Plug>(Hydra1_wait)L
Right hand side 
DescriptionBreakpoint
Description 
Left hand side<Plug>(Hydra1_wait)b
Right hand side 
DescriptionStep into
Description 
Left hand side<Plug>(Hydra1_wait)n
Right hand side 
Descriptionexit
Description 
Left hand side<Plug>(Hydra1_wait)q
Right hand side 
DescriptionStep over
Description 
Left hand side<Plug>(Hydra1_wait)N
Right hand side 
Left hand side<Plug>(Hydra1_wait)
Right hand side 
Left hand side<M-n>
Right hand side:call multiple_cursors#select_all("n", 1)<CR>
Left hand side<C-N>
Right hand side:call multiple_cursors#new("n", 1)<CR>
DescriptionComment toggle blockwise with count
Description 
Left hand side<Plug>(comment_toggle_blockwise_count)
Right hand side 
DescriptionComment toggle linewise with count
Description 
Left hand side<Plug>(comment_toggle_linewise_count)
Right hand side 
DescriptionComment toggle current block
Description 
Left hand side<Plug>(comment_toggle_blockwise_current)
Right hand side 
DescriptionComment toggle current line
Description 
Left hand side<Plug>(comment_toggle_linewise_current)
Right hand side 
DescriptionComment toggle blockwise
Description 
Left hand side<Plug>(comment_toggle_blockwise)
Right hand side 
DescriptionComment toggle linewise
Description 
Left hand side<Plug>(comment_toggle_linewise)
Right hand side 
DescriptionChange a surrounding pair, putting replacements on new lines
Description 
Left hand side<Plug>(nvim-surround-change-line)
Right hand side 
DescriptionChange a surrounding pair
Description 
Left hand side<Plug>(nvim-surround-change)
Right hand side 
DescriptionDelete a surrounding pair
Description 
Left hand side<Plug>(nvim-surround-delete)
Right hand side 
DescriptionAdd a surrounding pair around the current line, on new lines (normal mode)
Description 
Left hand side<Plug>(nvim-surround-normal-cur-line)
Right hand side 
DescriptionAdd a surrounding pair around a motion, on new lines (normal mode)
Description 
Left hand side<Plug>(nvim-surround-normal-line)
Right hand side 
DescriptionAdd a surrounding pair around the current line (normal mode)
Description 
Left hand side<Plug>(nvim-surround-normal-cur)
Right hand side 
DescriptionAdd a surrounding pair around a motion (normal mode)
Description 
Left hand side<Plug>(nvim-surround-normal)
Right hand side 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
Left hand side<C-L>
Right hand side<Cmd>lua require'tmux'.move_right()<CR>

Visual mode keymaps

DescriptionRemove trailing space
Description 
Left hand side w
Right hand side<Cmd>s/\s\+$//<CR>
DescriptionSubstitute File
Description 
Left hand side S
Right hand side:%s//gI<Left><Left><Left>
DescriptionSubstitute Line
Description 
Left hand side s
Right hand side:s/<C-R><C-W>//gI<Left><Left><Left>
DescriptionFormat Buffer
Description 
Left hand side nf
Right hand side 
Description[Hydra] Git
Description 
Left hand side g
Right hand side 
DescriptionNvim builtin
Description 
Left hand side#
Right hand sidey?\V<C-R>"<CR>
Left hand side%
Right hand side<Plug>(MatchitVisualForward)
DescriptionNvim builtin
Description 
Left hand side*
Right hand sidey/\V<C-R>"<CR>
DescriptionPaste from Clipboard
Description 
Left hand side,p
Right hand side"+p
DescriptionDelete to Clipboard
Description 
Left hand side,d
Right hand side"+d
DescriptionYank to Clipboard
Description 
Left hand side,y
Right hand side"+y
Left hand side<lt>
Right hand side<lt>gv
Left hand side>
Right hand side>gv
Left hand sideJ
Right hand side:m '>+1<CR>gv=gv
Left hand sideK
Right hand side:m '<lt>-2<CR>gv=gv
DescriptionAdd a surrounding pair around a visual selection
Description 
Left hand sideS
Right hand side<Plug>(nvim-surround-visual)
Left hand side[%
Right hand side<Plug>(MatchitVisualMultiBackward)
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
Left hand sidea%
Right hand side<Plug>(MatchitVisualTextObject)
Left hand sidegx
Right hand side<Plug>NetrwBrowseXVis
Left hand sideg%
Right hand side<Plug>(MatchitVisualBackward)
DescriptionAdd a surrounding pair around a visual selection, on new lines
Description 
Left hand sidegS
Right hand side<Plug>(nvim-surround-visual-line)
DescriptionComment toggle blockwise (visual)
Description 
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise_visual)
DescriptionComment toggle linewise (visual)
Description 
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise_visual)
Left hand sideg<M-n>
Right hand side:<C-U>call multiple_cursors#select_all("v", 0)<CR>
Left hand sideg<C-N>
Right hand side:<C-U>call multiple_cursors#new("v", 0)<CR>
Left hand sidep
Right hand side"_dP
Left hand side<S-ScrollWheelUp>
Right hand side<Cmd>keepj norm! {<CR>
Left hand side<S-ScrollWheelDown>
Right hand side<Cmd>keepj norm! }<CR>
Left hand side<ScrollWheelRight>
Right hand sidel
Left hand side<ScrollWheelUp>
Right hand sidek
Left hand side<ScrollWheelDown>
Right hand sidej
Left hand side<ScrollWheelLeft>
Right hand sideh
Left hand side<2-RightMouse>
Right hand side
Left hand side<RightMouse>
Right hand side
Left hand side<Plug>NetrwBrowseXVis
Right hand side:<C-U>call netrw#BrowseXVis()<CR>
Left hand side<Plug>(MatchitVisualTextObject)
Right hand side<Plug>(MatchitVisualMultiBackward)o<Plug>(MatchitVisualMultiForward)
Left hand side<Plug>(MatchitVisualMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>m'gv``
Left hand side<Plug>(MatchitVisualMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>m'gv``
Left hand side<Plug>(MatchitVisualBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'v')<CR>m'gv``
Left hand side<Plug>(MatchitVisualForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'v')<CR>:if col("''") != col("$") | exe ":normal! m'" | endif<CR>gv``
Left hand side<M-i>
Right hand side 
DescriptionAdd a surrounding pair around a visual selection, on new lines
Description 
Left hand side<Plug>(nvim-surround-visual-line)
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround({ line_mode = true })<CR>
DescriptionAdd a surrounding pair around a visual selection
Description 
Left hand side<Plug>(nvim-surround-visual)
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround({ line_mode = false })<CR>
DescriptionComment toggle blockwise (visual)
Description 
Left hand side<Plug>(comment_toggle_blockwise_visual)
Right hand side<Esc><Cmd>lua require("Comment.api").locked("toggle.blockwise")(vim.fn.visualmode())<CR>
DescriptionComment toggle linewise (visual)
Description 
Left hand side<Plug>(comment_toggle_linewise_visual)
Right hand side<Esc><Cmd>lua require("Comment.api").locked("toggle.linewise")(vim.fn.visualmode())<CR>
Left hand side<M-n>
Right hand side:<C-U>call multiple_cursors#select_all("v", 0)<CR>
Left hand side<C-N>
Right hand side:<C-U>call multiple_cursors#new("v", 0)<CR>

Operator mode keymaps

Left hand side%
Right hand side<Plug>(MatchitOperationForward)
Left hand side[%
Right hand side<Plug>(MatchitOperationMultiBackward)
Left hand side]%
Right hand side<Plug>(MatchitOperationMultiForward)
Left hand sideg%
Right hand side<Plug>(MatchitOperationBackward)
Left hand side<Plug>(MatchitOperationMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "o")<CR>
Left hand side<Plug>(MatchitOperationMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "o")<CR>
Left hand side<Plug>(MatchitOperationBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'o')<CR>
Left hand side<Plug>(MatchitOperationForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'o')<CR>
Left hand side<M-i>
Right hand side