Post

Optixal Neovim Configuration Information

Hybrid Neovim config for developers with a functional yet aesthetic experience. Uses a combination of vimscript and lua with the ‘vim-plug’ plugin manager

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

Git repository

https://github.com/Optixal/neovim-init.vim

Neovimcraft entry

http://neovimcraft.com/plugin/Optixal/neovim-init.vim

Plug managed plugins

Optixal Keymaps

Normal mode keymaps

Description 
Left hand side<Tab>
Right hand side:bnext<CR>
Description 
Left hand side q
Right hand side<Cmd>lua vim.diagnostic.setloclist()<CR>
Description 
Left hand side e
Right hand side<Cmd>lua vim.diagnostic.open_float()<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Description 
Left hand side,ca
Right hand side<Plug>NERDCommenterAltDelims
Description 
Left hand side,cu
Right hand side<Plug>NERDCommenterUncomment
Description 
Left hand side,cb
Right hand side<Plug>NERDCommenterAlignBoth
Description 
Left hand side,cl
Right hand side<Plug>NERDCommenterAlignLeft
Description 
Left hand side,cA
Right hand side<Plug>NERDCommenterAppend
Description 
Left hand side,cy
Right hand side<Plug>NERDCommenterYank
Description 
Left hand side,cs
Right hand side<Plug>NERDCommenterSexy
Description 
Left hand side,ci
Right hand side<Plug>NERDCommenterInvert
Description 
Left hand side,c$
Right hand side<Plug>NERDCommenterToEOL
Description 
Left hand side,cn
Right hand side<Plug>NERDCommenterNested
Description 
Left hand side,cm
Right hand side<Plug>NERDCommenterMinimal
Description 
Left hand side,c
Right hand side<Plug>NERDCommenterToggle
Description 
Left hand side,cc
Right hand side<Plug>NERDCommenterComment
Description 
Left hand side,f/
Right hand side<Cmd>Telescope current_buffer_fuzzy_find<CR>
Description 
Left hand side,fc
Right hand side<Cmd>Telescope colorscheme<CR>
Description 
Left hand side,fh
Right hand side<Cmd>Telescope help_tags<CR>
Description 
Left hand side,fb
Right hand side<Cmd>Telescope buffers<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,$v
Right hand side<C-W>v<C-W>l:terminal<CR>:set nonumber<CR>A
Description 
Left hand side,$s
Right hand side<C-W>s<C-W>j:terminal<CR>:set nonumber<CR>A
Description 
Left hand side,,
Right hand side:noh<CR>
Description 
Left hand side,l
Right hand side:Limelight!!<CR>
Description 
Left hand side,k
Right hand side:ColorToggle<CR>
Description 
Left hand side,j
Right hand side:set filetype=journal<CR>
Description 
Left hand side,h
Right hand side:RainbowParentheses!!<CR>
Description 
Left hand side,a
Right hand sidegaip*
Description 
Left hand side,t
Right hand side:call TrimWhitespace()<CR>
Description 
Left hand side,r
Right hand side:so ~/.config/nvim-Optixal/init.vim<CR>
Description 
Left hand side,q
Right hand side:NvimTreeFindFileToggle<CR>
Description 
Left hand sideH
Right hand sidecontext#util#map_H()
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
Description 
Left hand side[%
Right hand side<Plug>(MatchitNormalMultiBackward)
Description 
Left hand side[C
Right hand side9999[c
Description 
Left hand side[c
Right hand side<Plug>(signify-prev-hunk)
Description 
Left hand side[d
Right hand side<Cmd>lua vim.diagnostic.goto_prev()<CR>
Description 
Left hand side\
Right hand side,q
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
Description 
Left hand side]C
Right hand side9999]c
Description 
Left hand side]c
Right hand side<Plug>(signify-next-hunk)
Description 
Left hand side]d
Right hand side<Cmd>lua vim.diagnostic.goto_next()<CR>
Description 
Left hand sidecr
Right hand side<Plug>(abolish-coerce-word)
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
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
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
Description 
Left hand sidey<C-G>
Right hand side:<C-U>call setreg(v:register, fugitive#Object(@%))<CR>
Description 
Left hand sidezt
Right hand sidecontext#util#map_zt()
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>(Limelight)
Right hand side:set opfunc=limelight#operator<CR>g@
Description 
Left hand side<Plug>(bullets-promote)
Right hand side:BulletPromote<CR>
Description 
Left hand side<Plug>(bullets-demote)
Right hand side:BulletDemote<CR>
Description 
Left hand side<Plug>(bullets-toggle-checkbox)
Right hand side:ToggleCheckbox<CR>
Description 
Left hand side<Plug>(bullets-renumber)
Right hand side:RenumberList<CR>
Description 
Left hand side<Plug>(bullets-newline)
Right hand side:call <SNR>39_insert_new_bullet()<CR>
Description 
Left hand side<M-w>
Right hand side:silent VCoolIns ra<CR>
Description 
Left hand side<M-v>
Right hand side:silent VCoolIns h<CR>
Description 
Left hand side<M-r>
Right hand side:VCoolIns r<CR>
Description 
Left hand side<M-c>
Right hand side:VCoolor<CR>
Description 
Left hand side<Plug>ColorFgBg
Right hand side:<C-U>ColorSwapFgBg<CR>
Description 
Left hand side<Plug>ColorContrast
Right hand side:<C-U>ColorContrast<CR>
Description 
Left hand side<Plug>Colorizer
Right hand side:<C-U>ColorToggle<CR>
Description 
Left hand side<Plug>NERDCommenterAltDelims
Right hand side:call nerdcommenter#SwitchToAlternativeDelimiters(1)<CR>
Description 
Left hand side<Plug>NERDCommenterUncomment
Right hand side:call nerdcommenter#Comment("n", "Uncomment")<CR>
Description 
Left hand side<Plug>NERDCommenterAlignBoth
Right hand side:call nerdcommenter#Comment("n", "AlignBoth")<CR>
Description 
Left hand side<Plug>NERDCommenterAlignLeft
Right hand side:call nerdcommenter#Comment("n", "AlignLeft")<CR>
Description 
Left hand side<Plug>NERDCommenterAppend
Right hand side:call nerdcommenter#Comment("n", "Append")<CR>
Description 
Left hand side<Plug>NERDCommenterYank
Right hand side:call nerdcommenter#Comment("n", "Yank")<CR>
Description 
Left hand side<Plug>NERDCommenterSexy
Right hand side:call nerdcommenter#Comment("n", "Sexy")<CR>
Description 
Left hand side<Plug>NERDCommenterInvert
Right hand side:call nerdcommenter#Comment("n", "Invert")<CR>
Description 
Left hand side<Plug>NERDCommenterToEOL
Right hand side:call nerdcommenter#Comment("n", "ToEOL")<CR>
Description 
Left hand side<Plug>NERDCommenterNested
Right hand side:call nerdcommenter#Comment("n", "Nested")<CR>
Description 
Left hand side<Plug>NERDCommenterMinimal
Right hand side:call nerdcommenter#Comment("n", "Minimal")<CR>
Description 
Left hand side<Plug>NERDCommenterToggle
Right hand side:call nerdcommenter#Comment("n", "Toggle")<CR>
Description 
Left hand side<Plug>NERDCommenterComment
Right hand side:call nerdcommenter#Comment("n", "Comment")<CR>
Description 
Left hand side<Plug>(EasyAlignOperator)
Right hand side:set opfunc=<SNR>34_easy_align_op<CR>g@
Description 
Left hand side<Plug>(EasyAlignRepeat)
Right hand side:call <SNR>34_easy_align_repeat()<CR>
Description 
Left hand side<Plug>(LiveEasyAlign)
Right hand side:set opfunc=<SNR>34_live_easy_align_op<CR>g@
Description 
Left hand side<Plug>(EasyAlign)
Right hand side:set opfunc=<SNR>34_easy_align_op<CR>g@
Description 
Left hand side<Plug>(abolish-coerce-word)
Right hand side<SNR>33_coerce(nr2char(getchar())).'iw'
Description 
Left hand side<Plug>(abolish-coerce)
Right hand side<SNR>33_coerce(nr2char(getchar()))
Description 
Left hand side<Plug>(signify-prev-hunk)
Right hand side&diff ? '[c' : ":\<C-U>call sy#jump#prev_hunk(v:count1)\<CR>"
Description 
Left hand side<Plug>(signify-next-hunk)
Right hand side&diff ? ']c' : ":\<C-U>call sy#jump#next_hunk(v:count1)\<CR>"
Description 
Left hand side<Plug>YSurround
Right hand side<SNR>29_opfunc2('setup')
Description 
Left hand side<Plug>Ysurround
Right hand side<SNR>29_opfunc('setup')
Description 
Left hand side<Plug>YSsurround
Right hand side<SNR>29_opfunc2('setup').'_'
Description 
Left hand side<Plug>Yssurround
Right hand side'^'.v:count1.<SNR>29_opfunc('setup').'g_'
Description 
Left hand side<Plug>CSurround
Right hand side:<C-U>call <SNR>29_changesurround(1)<CR>
Description 
Left hand side<Plug>Csurround
Right hand side:<C-U>call <SNR>29_changesurround()<CR>
Description 
Left hand side<Plug>Dsurround
Right hand side:<C-U>call <SNR>29_dosurround(<SNR>29_inputtarget())<CR>
Description 
Left hand side<Plug>SurroundRepeat
Right hand side.
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>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
Description 
Left hand side<Plug>(vsnip-cut-text)
Right hand side:set operatorfunc=<SNR>13_vsnip_cut_text_normal<CR>g@
Description 
Left hand side<Plug>(vsnip-select-text)
Right hand side:set operatorfunc=<SNR>13_vsnip_select_text_normal<CR>g@
Description 
Left hand side<S-Tab>
Right hand side:bprevious<CR>
DescriptionNvim builtin
Left hand side<C-L>
Right hand side<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>

Visual mode keymaps

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,cu
Right hand side<Plug>NERDCommenterUncomment
Description 
Left hand side,cb
Right hand side<Plug>NERDCommenterAlignBoth
Description 
Left hand side,cl
Right hand side<Plug>NERDCommenterAlignLeft
Description 
Left hand side,cy
Right hand side<Plug>NERDCommenterYank
Description 
Left hand side,cs
Right hand side<Plug>NERDCommenterSexy
Description 
Left hand side,ci
Right hand side<Plug>NERDCommenterInvert
Description 
Left hand side,cn
Right hand side<Plug>NERDCommenterNested
Description 
Left hand side,cm
Right hand side<Plug>NERDCommenterMinimal
Description 
Left hand side,c
Right hand side<Plug>NERDCommenterToggle
Description 
Left hand side,cc
Right hand side<Plug>NERDCommenterComment
Description 
Left hand side,l
Right hand side:Limelight!!<CR>
Description 
Left hand side,a
Right hand sidegaip*
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 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 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>(Limelight)
Right hand side:Limelight<CR>
Description 
Left hand side<Plug>(bullets-promote)
Right hand side:BulletPromoteVisual<CR>
Description 
Left hand side<Plug>(bullets-demote)
Right hand side:BulletDemoteVisual<CR>
Description 
Left hand side<Plug>(bullets-renumber)
Right hand side:RenumberSelection<CR>
Description 
Left hand side<Plug>ColorFgBg
Right hand side:<C-U>ColorSwapFgBg<CR>
Description 
Left hand side<Plug>ColorContrast
Right hand side:<C-U>ColorContrast<CR>
Description 
Left hand side<Plug>Colorizer
Right hand side:ColorHighlight<CR>
Description 
Left hand side<Plug>NERDCommenterUncomment
Right hand side:call nerdcommenter#Comment("x", "Uncomment")<CR>
Description 
Left hand side<Plug>NERDCommenterAlignBoth
Right hand side:call nerdcommenter#Comment("x", "AlignBoth")<CR>
Description 
Left hand side<Plug>NERDCommenterAlignLeft
Right hand side:call nerdcommenter#Comment("x", "AlignLeft")<CR>
Description 
Left hand side<Plug>NERDCommenterYank
Right hand side:call nerdcommenter#Comment("x", "Yank")<CR>
Description 
Left hand side<Plug>NERDCommenterSexy
Right hand side:call nerdcommenter#Comment("x", "Sexy")<CR>
Description 
Left hand side<Plug>NERDCommenterInvert
Right hand side:call nerdcommenter#Comment("x", "Invert")<CR>
Description 
Left hand side<Plug>NERDCommenterNested
Right hand side:call nerdcommenter#Comment("x", "Nested")<CR>
Description 
Left hand side<Plug>NERDCommenterMinimal
Right hand side:call nerdcommenter#Comment("x", "Minimal")<CR>
Description 
Left hand side<Plug>NERDCommenterToggle
Right hand side:call nerdcommenter#Comment("x", "Toggle")<CR>
Description 
Left hand side<Plug>NERDCommenterComment
Right hand side:call nerdcommenter#Comment("x", "Comment")<CR>
Description 
Left hand side<Plug>(EasyAlignRepeat)
Right hand side:<C-U>call <SNR>34_repeat_in_visual()<CR>
Description 
Left hand side<Plug>(LiveEasyAlign)
Right hand side:<C-U>call <SNR>34_live_easy_align_op(visualmode(), 1)<CR>
Description 
Left hand side<Plug>(EasyAlign)
Right hand side:<C-U>call <SNR>34_easy_align_op(visualmode(), 1)<CR>
Description 
Left hand side<Plug>(abolish-coerce)
Right hand side<SNR>33_coerce(nr2char(getchar()))
Description 
Left hand side<Plug>(signify-motion-outer-visual)
Right hand side:<C-U>call sy#util#hunk_text_object(1)<CR>
Description 
Left hand side<Plug>(signify-motion-inner-visual)
Right hand side:<C-U>call sy#util#hunk_text_object(0)<CR>
Description 
Left hand side<Plug>VgSurround
Right hand side:<C-U>call <SNR>29_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1)<CR>
Description 
Left hand side<Plug>VSurround
Right hand side:<C-U>call <SNR>29_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR>
Description 
Left hand side<Plug>(vsnip-cut-text)
Right hand side:<C-U>call <SNR>13_vsnip_visual_text(visualmode())<CR>gv"_c
Description 
Left hand side<Plug>(vsnip-select-text)
Right hand side:<C-U>call <SNR>13_vsnip_visual_text(visualmode())<CR>gv

Operator mode keymaps

Description 
Left hand side%
Right hand side<Plug>(MatchitOperationForward)
Description 
Left hand side[%
Right hand side<Plug>(MatchitOperationMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitOperationMultiForward)
Description 
Left hand sideg%
Right hand side<Plug>(MatchitOperationBackward)
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>
Description 
Left hand side<Plug>(signify-motion-outer-pending)
Right hand side:<C-U>call sy#util#hunk_text_object(1)<CR>
Description 
Left hand side<Plug>(signify-motion-inner-pending)
Right hand side:<C-U>call sy#util#hunk_text_object(0)<CR>