Post

Mini Neovim Configuration Information

Uses the mini.nvim library. Personal configuration of the ‘mini.nvim’ author

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

Git repository

https://github.com/echasnovski/nvim

Neovimcraft entry

http://neovimcraft.com/plugin/echasnovski/nvim

Mini.nvim managed plugins

Mini Keymaps

Normal mode keymaps

DescriptionSuite
Left hand side Ts
Right hand side<Cmd>TestSuite<CR>
DescriptionSuite (quickfix)
Left hand side TS
Right hand side<Cmd>TestSuite -strategy=make | copen<CR>
DescriptionNearest
Left hand side Tn
Right hand side<Cmd>TestNearest<CR>
DescriptionNearest (quickfix)
Left hand side TN
Right hand side<Cmd>TestNearest -strategy=make | copen<CR>
DescriptionLast
Left hand side Tl
Right hand side<Cmd>TestLast<CR>
DescriptionLast (quickfix)
Left hand side TL
Right hand side<Cmd>TestLast -strategy=make | copen<CR>
DescriptionFile
Left hand side Tf
Right hand side<Cmd>TestFile<CR>
DescriptionFile (quickfix)
Left hand side TF
Right hand side<Cmd>TestFile -strategy=make | copen<CR>
DescriptionTerminal (vertical)
Left hand side tt
Right hand side<Cmd>vertical Tnew<CR>
DescriptionTerminal (horizontal)
Left hand side tT
Right hand side<Cmd>belowright Tnew<CR>
DescriptionTest show screenshot
Left hand side ts
Right hand side<Cmd>lua EC.minitest_screenshots.browse()<CR>
DescriptionTest run location
Left hand side tl
Right hand side<Cmd>lua MiniTest.run_at_location()<CR>
DescriptionTest run file
Left hand side tf
Right hand side<Cmd>lua MiniTest.run_file()<CR>
DescriptionTest run all
Left hand side ta
Right hand side<Cmd>lua MiniTest.run()<CR>
DescriptionSend to terminal
Left hand side s
Right hand side<Cmd>TREPLSendLine<CR>j
DescriptionTest
Left hand side rt
Right hand side<Cmd>T devtools::test()<CR>
DescriptionTest file
Left hand side rT
Right hand side<Cmd>T testthat::test_file("%")<CR>
DescriptionLoad all
Left hand side rl
Right hand side<Cmd>T devtools::load_all()<CR>
DescriptionKnit file
Left hand side rk
Right hand side<Cmd>T rmarkdown::render("%")<CR>
DescriptionInstall
Left hand side ri
Right hand side<Cmd>T devtools::install(keep_source=TRUE)<CR>
DescriptionDocument
Left hand side rd
Right hand side<Cmd>T devtools::document()<CR>
DescriptionCoverage
Left hand side rC
Right hand side<Cmd>T devtools::test_coverage()<CR>
DescriptionCheck
Left hand side rc
Right hand side<Cmd>T devtools::check()<CR>
DescriptionZoom toggle
Left hand side oz
Right hand side<Cmd>lua MiniMisc.zoom()<CR>
DescriptionTrailspace hl toggle
Left hand side oT
Right hand side<Cmd>lua vim.b.minitrailspace_disable = not vim.b.minitrailspace_disable<CR>
DescriptionTrim trailspace
Left hand side ot
Right hand side<Cmd>lua MiniTrailspace.trim()<CR>
DescriptionSection insert
Left hand side oS
Right hand side<Cmd>lua EC.insert_section()<CR>
DescriptionSession select
Left hand side os
Right hand side<Cmd>lua MiniSessions.select()<CR>
DescriptionResize to default width
Left hand side or
Right hand side<Cmd>lua MiniMisc.resize_window()<CR>
DescriptionMove arg right
Left hand side ol
Right hand side<Cmd>normal gxiagxina<CR>
DescriptionGenerate plugin doc
Left hand side og
Right hand side<Cmd>lua MiniDoc.generate()<CR>
DescriptionHighlight toggle
Left hand side oH
Right hand side<Cmd>TSBufToggle highlight<CR>
DescriptionMove arg left
Left hand side oh
Right hand side<Cmd>normal gxiagxila<CR>
DescriptionDocument
Left hand side od
Right hand side<Cmd>Neogen<CR>
DescriptionCursor word hl toggle
Left hand side oC
Right hand side<Cmd>lua MiniCursorword.toggle()<CR>
DescriptionToggle
Left hand side mt
Right hand side<Cmd>lua MiniMap.toggle()<CR>
DescriptionSide (toggle)
Left hand side ms
Right hand side<Cmd>lua MiniMap.toggle_side()<CR>
DescriptionRefresh
Left hand side mr
Right hand side<Cmd>lua MiniMap.refresh()<CR>
DescriptionOpen
Left hand side mo
Right hand side<Cmd>lua MiniMap.open()<CR>
DescriptionFocus (toggle)
Left hand side mf
Right hand side<Cmd>lua MiniMap.toggle_focus()<CR>
DescriptionClose
Left hand side mc
Right hand side<Cmd>lua MiniMap.close()<CR>
DescriptionExecute lua line
Left hand side Lx
Right hand side<Cmd>lua EC.execute_lua_line()<CR>
Descriptionluafile buffer
Left hand side Lf
Right hand side<Cmd>luafile %<CR>
DescriptionSource definition
Left hand side ls
Right hand side<Cmd>lua vim.lsp.buf.definition()<CR>
DescriptionRename
Left hand side lr
Right hand side<Cmd>lua vim.lsp.buf.rename()<CR>
DescriptionReferences
Left hand side lR
Right hand side<Cmd>lua vim.lsp.buf.references()<CR>
DescriptionPrev diagnostic
Left hand side lk
Right hand side<Cmd>lua vim.diagnostic.goto_prev()<CR>
DescriptionNext diagnostic
Left hand side lj
Right hand side<Cmd>lua vim.diagnostic.goto_next()<CR>
DescriptionInformation
Left hand side li
Right hand side<Cmd>lua vim.lsp.buf.hover()<CR>
DescriptionFormat
Left hand side lf
Right hand side<Cmd>lua vim.lsp.buf.format({ async = true })<CR>
DescriptionDiagnostics popup
Left hand side ld
Right hand side<Cmd>lua vim.diagnostic.open_float()<CR>
DescriptionArguments popup
Left hand side la
Right hand side<Cmd>lua vim.lsp.buf.signature_help()<CR>
DescriptionDiscard (reset) buffer
Left hand side gX
Right hand side<Cmd>lua require("gitsigns").reset_buffer()<CR>
DescriptionDiscard (reset) hunk
Left hand side gx
Right hand side<Cmd>lua require("gitsigns").reset_hunk()<CR>
DescriptionUndo stage hunk
Left hand side gu
Right hand side<Cmd>lua require("gitsigns").undo_stage_hunk()<CR>
DescriptionQuickfix hunks
Left hand side gq
Right hand side<Cmd>lua require("gitsigns").setqflist()<CR>:copen<CR>
DescriptionPreview hunk
Left hand side gp
Right hand side<Cmd>lua require("gitsigns").preview_hunk()<CR>
DescriptionGit tab
Left hand side gg
Right hand side<Cmd>lua EC.open_lazygit()<CR>
DescriptionBlame line
Left hand side gb
Right hand side<Cmd>lua require("gitsigns").blame_line()<CR>
DescriptionAdd (stage) hunk
Left hand side ga
Right hand side<Cmd>lua require("gitsigns").stage_hunk()<CR>
DescriptionAdd buffer
Left hand side gA
Right hand side<Cmd>lua require("gitsigns").stage_buffer()<CR>
DescriptionFile browser
Left hand side ft
Right hand side<Cmd>Telescope file_browser<CR>
DescriptionSymbols (treesitter)
Left hand side fS
Right hand side<Cmd>Telescope treesitter<CR>
DescriptionSpell suggestions
Left hand side fs
Right hand side<Cmd>Telescope spell_suggest<CR>
DescriptionReferences (LSP)
Left hand side fR
Right hand side<Cmd>Telescope lsp_references<CR>
DescriptionResume
Left hand side fr
Right hand side<Cmd>lua MiniPick.builtin.resume()<CR>
DescriptionOptions
Left hand side fO
Right hand side<Cmd>Telescope vim_options<CR>
DescriptionOld files
Left hand side fo
Right hand side<Cmd>Telescope oldfiles<CR>
DescriptionJumplist
Left hand side fj
Right hand side<Cmd>Telescope jumplist<CR>
DescriptionHighlight groups
Left hand side fH
Right hand side<Cmd>Telescope highlights<CR>
DescriptionHelp tags
Left hand side fh
Right hand side<Cmd>lua MiniPick.builtin.help()<CR>
DescriptionGrep live
Left hand side fg
Right hand side<Cmd>lua MiniPick.builtin.grep_live()<CR>
DescriptionFiles
Left hand side ff
Right hand side<Cmd>lua MiniPick.builtin.files()<CR>
DescriptionDiagnostic buffer
Left hand side fD
Right hand side<Cmd>Telescope diagnostics bufnr=0<CR>
DescriptionDiagnostic workspace
Left hand side fd
Right hand side<Cmd>Telescope diagnostics<CR>
DescriptionBuffer commits
Left hand side fC
Right hand side<Cmd>Telescope git_bcommits<CR>
DescriptionCommits
Left hand side fc
Right hand side<Cmd>Telescope git_commits<CR>
DescriptionOpen buffers
Left hand side fB
Right hand side<Cmd>Telescope current_buffer_fuzzy_find<CR>
DescriptionOpen buffers
Left hand side fb
Right hand side<Cmd>lua MiniPick.builtin.buffers()<CR>
DescriptionCommands
Left hand side f:
Right hand side<Cmd>Telescope command_history<CR>
Description”/” history
Left hand side f/
Right hand side<Cmd>Telescope search_history<CR>
DescriptionQuickfix
Left hand side eq
Right hand side<Cmd>lua EC.toggle_quickfix()<CR>
DescriptionMini.nvim directory
Left hand side em
Right hand side<Cmd>lua MiniFiles.open('~/.config/nvim-Mini/pack/plugins/opt/mini')<CR>
DescriptionFile directory
Left hand side ef
Right hand side<Cmd>lua MiniFiles.open(vim.api.nvim_buf_get_name(0))<CR>
DescriptionDirectory
Left hand side ed
Right hand side<Cmd>lua MiniFiles.open()<CR>
DescriptionWipeout!
Left hand side bW
Right hand side<Cmd>lua MiniBufremove.wipeout(0, true)<CR>
DescriptionWipeout
Left hand side bw
Right hand side<Cmd>lua MiniBufremove.wipeout()<CR>
DescriptionScratch
Left hand side bs
Right hand side<Cmd>lua EC.new_scratch_buffer()<CR>
DescriptionDelete!
Left hand side bD
Right hand side<Cmd>lua MiniBufremove.delete(0, true)<CR>
DescriptionDelete
Left hand side bd
Right hand side<Cmd>lua MiniBufremove.delete()<CR>
DescriptionAlternate
Left hand side ba
Right hand side<Cmd>b#<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)
DescriptionPaste Above
Left hand side[p
Right hand side<Cmd>exe "put! " . v:register<CR>
DescriptionToggle hlsearch
Left hand side\h
Right hand side 
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
DescriptionPaste Below
Left hand side]p
Right hand side<Cmd>exe "put " . v:register<CR>
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
Description 
Left hand sides
Right hand side
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>
DescriptionNvim builtin
Left hand side<C-L>
Right hand side<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>

Visual mode keymaps

DescriptionSend to terminal
Left hand side s
Right hand sidemode() ==# "v" ? ":TREPLSendSelection<CR>`>l" : ":TREPLSendSelection<CR>'>j"
DescriptionReprex selection
Left hand side rx
Right hand side"+y :T reprex::reprex()<CR>
DescriptionFormat selection
Left hand side lf
Right hand side<Cmd>lua vim.lsp.buf.format()<CR><Esc>
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)
DescriptionPaste Above
Left hand side[p
Right hand side<Cmd>exe "put! " . v:register<CR>
Description 
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
DescriptionPaste Below
Left hand side]p
Right hand side<Cmd>exe "put " . v:register<CR>
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 sides
Right hand side
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 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>