Post

Josean Neovim Configuration Information

Josean Martinez video tutorial

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

Git repository

https://github.com/josean-dev/dev-environment-files

YouTube channel

https://www.youtube.com/@joseanmartinez

Packer managed plugins

Josean Keymaps

Normal mode keymaps

DescriptionGo to previous harpoon mark
Left hand side hp
Right hand side<Cmd>lua require('harpoon.ui').nav_prev()<CR>
DescriptionGo to next harpoon mark
Left hand side hn
Right hand side<Cmd>lua require('harpoon.ui').nav_next()<CR>
DescriptionMark file with harpoon
Left hand side hm
Right hand side<Cmd>lua require('harpoon.mark').add_file()<CR>
DescriptionRefresh file explorer
Left hand side er
Right hand side<Cmd>NvimTreeRefresh<CR>
DescriptionCollapse file explorer
Left hand side ec
Right hand side<Cmd>NvimTreeCollapse<CR>
DescriptionToggle file explorer on current file
Left hand side ef
Right hand side<Cmd>NvimTreeFindFileToggle<CR>
DescriptionToggle file explorer
Left hand side ee
Right hand side<Cmd>NvimTreeToggle<CR>
DescriptionSave session for auto session root dir
Left hand side ws
Right hand side<Cmd>SessionSave<CR>
DescriptionRestore session for cwd
Left hand side wr
Right hand side<Cmd>SessionRestore<CR>
DescriptionFind string under cursor in cwd
Left hand side fc
Right hand side<Cmd>Telescope grep_string<CR>
DescriptionFind string in cwd
Left hand side fs
Right hand side<Cmd>Telescope live_grep<CR>
DescriptionFuzzy find recent files
Left hand side fr
Right hand side<Cmd>Telescope oldfiles<CR>
DescriptionFuzzy find files in cwd
Left hand side ff
Right hand side<Cmd>Telescope find_files<CR>
Description 
Left hand side sm
Right hand side 
DescriptionOpen current buffer in new tab
Left hand side tf
Right hand side<Cmd>tabnew %<CR>
DescriptionGo to previous tab
Left hand side tp
Right hand side<Cmd>tabp<CR>
DescriptionGo to next tab
Left hand side tn
Right hand side<Cmd>tabn<CR>
DescriptionClose current tab
Left hand side tx
Right hand side<Cmd>tabclose<CR>
DescriptionOpen new tab
Left hand side to
Right hand side<Cmd>tabnew<CR>
DescriptionClose current split
Left hand side sx
Right hand side<Cmd>close<CR>
DescriptionMake splits equal size
Left hand side se
Right hand side<C-W>=
DescriptionSplit window horizontally
Left hand side sh
Right hand side<C-W>s
DescriptionSplit window vertically
Left hand side sv
Right hand side<C-W>v
DescriptionDecrement number
Left hand side -
Right hand side<C-X>
DescriptionIncrement number
Left hand side +
Right hand side<C-A>
DescriptionClear search highlights
Left hand side nh
Right hand side:nohl<CR>
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 sideg%
Right hand side<Plug>(MatchitNormalBackward)
Description 
Left hand sidegrr
Right hand side<Plug>ReplaceWithRegisterLine
Description 
Left hand sidegr
Right hand side<Plug>ReplaceWithRegisterOperator
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<C-Bslash>
Right hand side:<C-U>TmuxNavigatePrevious<CR>
Description 
Left hand side<C-K>
Right hand side:<C-U>TmuxNavigateUp<CR>
Description 
Left hand side<C-J>
Right hand side:<C-U>TmuxNavigateDown<CR>
Description 
Left hand side<C-H>
Right hand side:<C-U>TmuxNavigateLeft<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>ReplaceWithRegisterVisual
Right hand side:<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterVisual", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|execute 'normal!' ReplaceWithRegister#VisualMode()|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterVisual")<CR>
Description 
Left hand side<Plug>ReplaceWithRegisterLine
Right hand side:<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterLine", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|call ReplaceWithRegister#SetCount()|execute 'normal! V' . v:count1 . "_\<lt>Esc>"|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterLine", 1)<CR>
Description 
Left hand side<Plug>ReplaceWithRegisterExpressionSpecial
Right hand side:<C-U>let g:ReplaceWithRegister#expr = getreg('=')|execute 'normal!' v:count1 . '.'<CR>
Description 
Left hand side<Plug>ReplaceWithRegisterOperator
Right hand sideReplaceWithRegister#OperatorExpression()
Description 
Left hand side<C-L>
Right hand side:<C-U>TmuxNavigateRight<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[%
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 sideg%
Right hand side<Plug>(MatchitVisualBackward)
Description 
Left hand sidegr
Right hand side<Plug>ReplaceWithRegisterVisual
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<C-Bslash>
Right hand side:<C-U>TmuxNavigatePrevious<CR>
Description 
Left hand side<C-K>
Right hand side:<C-U>TmuxNavigateUp<CR>
Description 
Left hand side<C-J>
Right hand side:<C-U>TmuxNavigateDown<CR>
Description 
Left hand side<C-H>
Right hand side:<C-U>TmuxNavigateLeft<CR>
Description 
Left hand side<Plug>ReplaceWithRegisterVisual
Right hand side:<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterVisual", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterVisual")<CR>
Description 
Left hand side<C-L>
Right hand side:<C-U>TmuxNavigateRight<CR>

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<C-Bslash>
Right hand side:<C-U>TmuxNavigatePrevious<CR>
Description 
Left hand side<C-K>
Right hand side:<C-U>TmuxNavigateUp<CR>
Description 
Left hand side<C-J>
Right hand side:<C-U>TmuxNavigateDown<CR>
Description 
Left hand side<C-H>
Right hand side:<C-U>TmuxNavigateLeft<CR>
Description 
Left hand side<C-L>
Right hand side:<C-U>TmuxNavigateRight<CR>