Post

Jdhao Neovim Configuration Information

A modern Neovim configuration with full support for Python, Lua, C++, Markdown, LaTeX, and more

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

Git repository

https://github.com/jdhao/nvim-config

Neovimcraft entry

https://neovimcraft.com/plugin/jdhao/nvim-config

Dotfyle entry

https://dotfyle.com/jdhao/nvim-config

Website

https://jdhao.github.io

Lazy managed plugins

Jdhao Keymaps

Normal mode keymaps

Description 
Left hand side u
Right hand side:MundoToggle<CR>
Description 
Left hand side t
Right hand side:<C-U>Vista!!<CR>
Description 
Left hand side s
Right hand side 
Descriptioninsert line above
Left hand side O
Right hand sideprintf('m`%sO<Esc>``', v:count1)
Descriptioninsert line below
Left hand side o
Right hand sideprintf('m`%so<Esc>``', v:count1)
Description 
Left hand side#
Right hand side 
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Description 
Left hand side*
Right hand side 
Description 
Left hand side,dp
Right hand side:<C-U>GdbStartPDB python -m pdb %<CR>
Description 
Left hand side,fr
Right hand side:<C-U>Leaderf mru --popup --absolute-path<CR>
Description 
Left hand side,fb
Right hand side:<C-U>Leaderf buffer --popup<CR>
Description 
Left hand side,ft
Right hand side:<C-U>Leaderf bufTag --popup<CR>
Description 
Left hand side,fh
Right hand side:<C-U>Leaderf help --popup<CR>
Description 
Left hand side,fg
Right hand side:<C-U>Leaderf rg --no-messages --popup<CR>
Description 
Left hand side,ff
Right hand side:<C-U>Leaderf file --popup<CR>
Description 
Left hand side,cb
Right hand side 
Descriptiontoggle cursor column
Left hand side,cl
Right hand side<Cmd>call utils#ToggleCursorCol()<CR>
Descriptionyank entire buffer
Left hand side,y
Right hand side<Cmd>%yank<CR>
Descriptioncheck syntax group
Left hand side,st
Right hand side<Cmd>call utils#SynGroup()<CR>
Descriptionremove trailing space
Left hand side,
Right hand side<Cmd>StripTrailingWhitespace<CR>
Descriptionchange cwd
Left hand side,cd
Right hand side<Cmd>lcd %:p:h<CR><Cmd>pwd<CR>
Descriptionreselect last pasted area
Left hand side,v
Right hand sideprintf('`[%s`]', getregtype()[0])
Descriptionreload init.lua
Left hand side,sv
Right hand side 
Descriptionopen init.lua
Left hand side,ev
Right hand side<Cmd>tabnew $MYVIMRC | tcd %:h<CR>
Descriptionquit nvim
Left hand side,Q
Right hand side<Cmd>qa!<CR>
Descriptionquit current window
Left hand side,q
Right hand side<Cmd>x<CR>
Descriptionsave buffer
Left hand side,w
Right hand side<Cmd>update<CR>
Descriptionpaste above current line
Left hand side,P
Right hand sidem`O<Esc>p``
Descriptionpaste below current line
Left hand side,p
Right hand sidem`o<Esc>p``
Description 
Left hand side/
Right hand side/\v
Description 
Left hand side0
Right hand sideg0
Description 
Left hand side;
Right hand side:
Description 
Left hand sideC
Right hand side"_C
Description 
Left hand sideH
Right hand side^
Descriptionjoin line
Left hand sideJ
Right hand side 
Description 
Left hand sideL
Right hand sideg_
Description 
Left hand sideN
Right hand side 
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
Descriptionfirst qf item
Left hand side[Q
Right hand side<Cmd>cfirst<CR>zv
Descriptionprevious qf item
Left hand side[q
Right hand side<Cmd>cprevious<CR>zv
Descriptionfirst location item
Left hand side[L
Right hand side<Cmd>lfirst<CR>zv
Descriptionprevious location item
Left hand side[l
Right hand side<Cmd>lprevious<CR>zv
Descriptiondelete buffer
Left hand side\d
Right hand side<Cmd>bprevious | bdelete #<CR>
Descriptionclose qf and location list
Left hand side\x
Right hand side<Cmd>windo lclose | cclose <CR>
Descriptionlast qf item
Left hand side]Q
Right hand side<Cmd>clast<CR>zv
Descriptionnext qf item
Left hand side]q
Right hand side<Cmd>cnext<CR>zv
Descriptionlast location item
Left hand side]L
Right hand side<Cmd>llast<CR>zv
Descriptionnext location item
Left hand side]l
Right hand side<Cmd>lnext<CR>zv
Description 
Left hand side^
Right hand sideg^
Description 
Left hand sidecc
Right hand side"_cc
Description 
Left hand sidec
Right hand side"_c
Description 
Left hand sidega
Right hand side<Plug>(UnicodeGA)
Descriptionjoin visual lines
Left hand sidegJ
Right hand side 
Descriptiongo to buffer (backward)
Left hand sidegB
Right hand side<Cmd>call buf_utils#GoToBuffer(v:count, "backward")<CR>
Descriptiongo to buffer (forward)
Left hand sidegb
Right hand side<Cmd>call buf_utils#GoToBuffer(v:count, "forward")<CR>
Description 
Left hand sidej
Right hand sidev:count == 0 ? 'gj' : 'j'
Description 
Left hand sidek
Right hand sidev:count == 0 ? 'gk' : 'k'
Description 
Left hand siden
Right hand side 
Description 
Left hand sides
Right hand side
Description 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR>
Description 
Left hand side<Down>
Right hand side<C-W>j
Description 
Left hand side<Up>
Right hand side<C-W>k
Description 
Left hand side<Right>
Right hand side<C-W>l
Description 
Left hand side<Left>
Right hand side<C-W>h
Descriptionmove line down
Left hand side<M-j>
Right hand side<Cmd>call utils#SwitchLine(line("."), "down")<CR>
Descriptionmove line up
Left hand side<M-k>
Right hand side<Cmd>call utils#SwitchLine(line("."), "up")<CR>
Descriptiontoggle spell
Left hand side<F11>
Right hand side<Cmd>set spell!<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 sideg_
DescriptionNvim builtin
Left hand side*
Right hand sidey/\V<C-R>"<CR>
Description 
Left hand side;
Right hand side:
Description 
Left hand side<lt>
Right hand side<lt>gv
Description 
Left hand side>
Right hand side>gv
Description 
Left hand sideH
Right hand side^
Description 
Left hand sideL
Right hand sideg_
Description 
Left hand sidec
Right hand side"_c
Descriptionbuffer text object
Left hand sideiB
Right hand side<Cmd>call text_obj#Buffer()<CR>
DescriptionURL text object
Left hand sideiu
Right hand side<Cmd>call text_obj#URL()<CR>
Description 
Left hand sidep
Right hand side"_c<Esc>p
Descriptionmove selection down
Left hand side<M-j>
Right hand side<Cmd>call utils#MoveSelection("down")<CR>
Descriptionmove selection up
Left hand side<M-k>
Right hand side<Cmd>call utils#MoveSelection("up")<CR>

Operator mode keymaps

Descriptionbuffer text object
Left hand sideiB
Right hand side<Cmd>call text_obj#Buffer()<CR>
DescriptionURL text object
Left hand sideiu
Right hand side<Cmd>call text_obj#URL()<CR>
Description 
Left hand sides
Right hand side