Post

Opinion Neovim Configuration Information

Includes a combination of popular plugins

  • Install and initialize: lazyman -x Opinion
  • Configuration category: Starter
  • Base configuration: Custom
  • Plugin manager: Lazy
  • Installation location: ~/.config/nvim-Opinion

Git repository

https://github.com/VonHeikemen/nvim-starter/tree/02-opinionated

Lazy managed plugins

Opinion Keymaps

Normal mode keymaps

Description 
Left hand side e
Right hand side<Cmd>NvimTreeToggle<CR>
Description 
Left hand side fs
Right hand side<Cmd>Telescope current_buffer_fuzzy_find<CR>
Description 
Left hand side fd
Right hand side<Cmd>Telescope diagnostics<CR>
Description 
Left hand side fg
Right hand side<Cmd>Telescope live_grep<CR>
Description 
Left hand side ff
Right hand side<Cmd>Telescope find_files<CR>
Description 
Left hand side
Right hand side<Cmd>Telescope buffers<CR>
Description 
Left hand side ?
Right hand side<Cmd>Telescope oldfiles<CR>
Description 
Left hand side bc
Right hand side<Cmd>Bdelete<CR>
Description 
Left hand side bl
Right hand side<Cmd>buffer #<CR>
Description 
Left hand side bq
Right hand side<Cmd>bdelete<CR>
Description 
Left hand side w
Right hand side<Cmd>write<CR>
Description 
Left hand side a
Right hand side:keepjumps normal! ggVG<CR>
Description 
Left hand side l
Right hand sideg_
Description 
Left hand side h
Right hand side^
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
Description 
Left hand side[%
Right hand side<Plug>(MatchitNormalMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
Description 
Left hand sidecS
Right hand side<Plug>CSurround
Description 
Left hand sidecs
Right hand side<Plug>Csurround
Description 
Left hand sideds
Right hand side<Plug>Dsurround
DescriptionComment insert end of line
Left hand sidegcA
Right hand side 
DescriptionComment insert above
Left hand sidegcO
Right hand side 
DescriptionComment insert below
Left hand sidegco
Right hand side 
DescriptionComment toggle current block
Left hand sidegbc
Right hand side 
DescriptionComment toggle current line
Left hand sidegcc
Right hand side 
DescriptionComment toggle blockwise
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise)
DescriptionComment toggle linewise
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise)
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
Description 
Left hand sidegp
Right hand side"+p
Description 
Left hand sidegy
Right hand side"+y
Description 
Left hand sidex
Right hand side"_x
Description 
Left hand sidey<C-G>
Right hand side:<C-U>call setreg(v:register, fugitive#Object(@%))<CR>
Description 
Left hand sideySS
Right hand side<Plug>YSsurround
Description 
Left hand sideySs
Right hand side<Plug>YSsurround
Description 
Left hand sideyss
Right hand side<Plug>Yssurround
Description 
Left hand sideyS
Right hand side<Plug>YSurround
Description 
Left hand sideys
Right hand side<Plug>Ysurround
DescriptionToggle Terminal
Left hand side<C-G>
Right hand side<Cmd>execute v:count . "ToggleTerm"<CR>
Description 
Left hand side<Plug>NetrwBrowseX
Right hand side:call netrw#BrowseX(netrw#GX(),netrw#CheckIfRemote(netrw#GX()))<CR>
Description 
Left hand side<Plug>(MatchitNormalMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>
Description 
Left hand side<Plug>(MatchitNormalMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>
Description 
Left hand side<Plug>(MatchitNormalBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'n')<CR>
Description 
Left hand side<Plug>(MatchitNormalForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'n')<CR>
Description 
Left hand side<Plug>fugitive:
Right hand side
Description 
Left hand side<Plug>fugitive:y<C-G>
Right hand side:<C-U>call setreg(v:register, fugitive#Object(@%))<CR>
Description 
Left hand side<Plug>YSurround
Right hand side<SNR>11_opfunc2('setup')
Description 
Left hand side<Plug>Ysurround
Right hand side<SNR>11_opfunc('setup')
Description 
Left hand side<Plug>YSsurround
Right hand side<SNR>11_opfunc2('setup').'_'
Description 
Left hand side<Plug>Yssurround
Right hand side'^'.v:count1.<SNR>11_opfunc('setup').'g_'
Description 
Left hand side<Plug>CSurround
Right hand side:<C-U>call <SNR>11_changesurround(1)<CR>
Description 
Left hand side<Plug>Csurround
Right hand side:<C-U>call <SNR>11_changesurround()<CR>
Description 
Left hand side<Plug>Dsurround
Right hand side:<C-U>call <SNR>11_dosurround(<SNR>11_inputtarget())<CR>
Description 
Left hand side<Plug>SurroundRepeat
Right hand side.
DescriptionComment toggle blockwise with count
Left hand side<Plug>(comment_toggle_blockwise_count)
Right hand side 
DescriptionComment toggle linewise with count
Left hand side<Plug>(comment_toggle_linewise_count)
Right hand side 
DescriptionComment toggle current block
Left hand side<Plug>(comment_toggle_blockwise_current)
Right hand side 
DescriptionComment toggle current line
Left hand side<Plug>(comment_toggle_linewise_current)
Right hand side 
DescriptionComment toggle blockwise
Left hand side<Plug>(comment_toggle_blockwise)
Right hand side 
DescriptionComment toggle linewise
Left hand side<Plug>(comment_toggle_linewise)
Right hand side 
Description 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
DescriptionNvim builtin
Left hand side<C-L>
Right hand side<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>

Visual mode keymaps

Description 
Left hand side l
Right hand sideg_
Description 
Left hand side h
Right hand side^
DescriptionNvim builtin
Left hand side#
Right hand sidey?\V<C-R>"<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitVisualForward)
DescriptionNvim builtin
Left hand side*
Right hand sidey/\V<C-R>"<CR>
Description 
Left hand side@(targets)
Right hand side:<C-U>call targets#do()<CR>
Description 
Left hand sideA
Right hand sidetargets#e('o', 'A', 'A')
Description 
Left hand sideI
Right hand sidetargets#e('o', 'I', 'I')
Description 
Left hand sideS
Right hand side<Plug>VSurround
Description 
Left hand side[%
Right hand side<Plug>(MatchitVisualMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
Description 
Left hand sidea%
Right hand side<Plug>(MatchitVisualTextObject)
Description 
Left hand sidea
Right hand sidetargets#e('o', 'a', 'a')
DescriptionComment toggle blockwise (visual)
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise_visual)
DescriptionComment toggle linewise (visual)
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise_visual)
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseXVis
Description 
Left hand sideg%
Right hand side<Plug>(MatchitVisualBackward)
Description 
Left hand sidegS
Right hand side<Plug>VgSurround
Description 
Left hand sidegp
Right hand side"+p
Description 
Left hand sidegy
Right hand side"+y
Description 
Left hand sidei
Right hand sidetargets#e('o', 'i', 'i')
Description 
Left hand sidex
Right hand side"_x
Description 
Left hand side<Plug>NetrwBrowseXVis
Right hand side:<C-U>call netrw#BrowseXVis()<CR>
Description 
Left hand side<Plug>(MatchitVisualTextObject)
Right hand side<Plug>(MatchitVisualMultiBackward)o<Plug>(MatchitVisualMultiForward)
Description 
Left hand side<Plug>(MatchitVisualMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>m'gv``
Description 
Left hand side<Plug>(MatchitVisualMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>m'gv``
Description 
Left hand side<Plug>(MatchitVisualBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'v')<CR>m'gv``
Description 
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``
Description 
Left hand side<Plug>VgSurround
Right hand side:<C-U>call <SNR>10_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1)<CR>
Description 
Left hand side<Plug>VSurround
Right hand side:<C-U>call <SNR>10_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR>
DescriptionComment toggle blockwise (visual)
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)
Left hand side<Plug>(comment_toggle_linewise_visual)
Right hand side<Esc><Cmd>lua require("Comment.api").locked("toggle.linewise")(vim.fn.visualmode())<CR>

Operator mode keymaps

Description 
Left hand side l
Right hand sideg_
Description 
Left hand side h
Right hand side^
Description 
Left hand side%
Right hand side<Plug>(MatchitOperationForward)
Description 
Left hand side@(targets)
Right hand side:<C-U>call targets#do()<CR>
Description 
Left hand sideA
Right hand sidetargets#e('o', 'A', 'A')
Description 
Left hand sideI
Right hand sidetargets#e('o', 'I', 'I')
Description 
Left hand side[%
Right hand side<Plug>(MatchitOperationMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitOperationMultiForward)
Description 
Left hand sidea
Right hand sidetargets#e('o', 'a', 'a')
Description 
Left hand sideg%
Right hand side<Plug>(MatchitOperationBackward)
Description 
Left hand sidei
Right hand sidetargets#e('o', 'i', 'i')
Description 
Left hand side<Plug>(MatchitOperationMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "o")<CR>
Description 
Left hand side<Plug>(MatchitOperationMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "o")<CR>
Description 
Left hand side<Plug>(MatchitOperationBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'o')<CR>
Description 
Left hand side<Plug>(MatchitOperationForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'o')<CR>