Post

Craftzdog Neovim Configuration Information

Takuya Matsuyama’s Neovim configuration

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

Git repository

https://github.com/craftzdog/dotfiles-public

Dotfyle entry

https://dotfyle.com/craftzdog/dotfiles-public-config-nvim

Lazy managed plugins

Craftzdog Keymaps

Normal mode keymaps

Description 
Left hand side<Tab>
Right hand side<Cmd>BufferLineCycleNext<CR>
Description 
Left hand side
Right hand side<C-W>w
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Description 
Left hand side+
Right hand side<C-A>
Description 
Left hand side-
Right hand side<C-X>
Description 
Left hand side;e
Right hand side 
Description 
Left hand side;;
Right hand side 
Description 
Left hand side;t
Right hand side 
Description 
Left hand side;r
Right hand side 
Description 
Left hand side;f
Right hand side 
Description 
Left hand sideK
Right hand side<Cmd>Lspsaga hover_doc<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 
Description 
Left hand side\gR
Right hand side<Cmd>lua require('git.revert').open(true)<CR>
Description 
Left hand side\gr
Right hand side<Cmd>lua require('git.revert').open(false)<CR>
Description 
Left hand side\gD
Right hand side<Cmd>lua require('git.diff').close()<CR>
Description 
Left hand side\gd
Right hand side<Cmd>lua require('git.diff').open()<CR>
Description 
Left hand side\gn
Right hand side<Cmd>lua require('git.browse').create_pull_request()<CR>
Description 
Left hand side\gp
Right hand side<Cmd>lua require('git.browse').pull_request()<CR>
Description 
Left hand side\go
Right hand side<Cmd>lua require('git.browse').open(false)<CR>
Description 
Left hand side\gb
Right hand side<Cmd>lua require('git.blame').blame()<CR>
Description 
Left hand side\ca
Right hand side<Cmd>Lspsaga code_action<CR>
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
Description 
Left hand sidedw
Right hand sidevb"_d
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 sidegr
Right hand side<Cmd>Lspsaga rename<CR>
Description 
Left hand sidegp
Right hand side<Cmd>Lspsaga peek_definition<CR>
Description 
Left hand sidegt
Right hand side<Cmd>Lspsaga goto_type_definition<CR>
Description 
Left hand sidegd
Right hand side<Cmd>Lspsaga finder<CR>
Description 
Left hand sidegl
Right hand side<Cmd>Lspsaga show_line_diagnostics<CR>
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
Description 
Left hand sidesf
Right hand side 
Description 
Left hand sidesl
Right hand side<C-W>l
Description 
Left hand sidesj
Right hand side<C-W>j
Description 
Left hand sidesk
Right hand side<C-W>k
Description 
Left hand sidesh
Right hand side<C-W>h
Description 
Left hand sidesv
Right hand side:vsplit<CR><C-W>w
Description 
Left hand sidess
Right hand side:split<CR><C-W>w
Description 
Left hand sidete
Right hand side:tabedit
Description 
Left hand sidex
Right hand side"_x
Description 
Left hand side<C-W>o
Right hand side<Cmd>ZenMode<CR>
Description 
Left hand side<S-Tab>
Right hand side<Cmd>BufferLineCyclePrev<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>luasnip-expand-repeat
Right hand side 
Description 
Left hand side<Plug>luasnip-delete-check
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<C-J>
Right hand side<Cmd>Lspsaga diagnostic_jump_next<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<C-W><Down>
Right hand side<C-W>-
Description 
Left hand side<C-W><Up>
Right hand side<C-W>+
Description 
Left hand side<C-W><Right>
Right hand side<C-W>>
Description 
Left hand side<C-W><Left>
Right hand side<C-W><lt>
Description 
Left hand side<C-A>
Right hand sideggVG
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[%
Right hand side<Plug>(MatchitVisualMultiBackward)
Description 
Left hand side\go
Right hand side:<C-U> lua require('git.browse').open(true)<CR>
Description 
Left hand side\ca
Right hand side<Cmd>Lspsaga code_action<CR>
Description 
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
Description 
Left hand sidea%
Right hand side<Plug>(MatchitVisualTextObject)
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 sidesl
Right hand side<C-W>l
Description 
Left hand sidesj
Right hand side<C-W>j
Description 
Left hand sidesk
Right hand side<C-W>k
Description 
Left hand sidesh
Right hand side<C-W>h
Description 
Left hand side<Plug>luasnip-expand-repeat
Right hand side 
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>
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``

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 sidesl
Right hand side<C-W>l
Description 
Left hand sidesj
Right hand side<C-W>j
Description 
Left hand sidesk
Right hand side<C-W>k
Description 
Left hand sidesh
Right hand side<C-W>h
Description 
Left hand side<Plug>luasnip-expand-repeat
Right hand side 
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>