Public Access
romanzy neovim config
Inspirations:
To remove a plugin run :lua vim.pack.del({ "<plugin name>" }).
Neovim Notes
See custom keymaps with short descriptions with <leader><leader>h.
General shortcuts:
<leader>eopens the file browsergxopens an external viewergR,<F5>refresh
Windowing shortcuts:
<leader>svopen a vertical split<leader>shopen a horizontal split<leader>seequalize split sizes<leader>scclose the current window<leader>r-hjklto resize<leader>reequalize split sizes<C-hjkl>move between windows
Buffer shortcuts:
<leader>bpprevious buffer<leader>bnnext buffer<leader>bddelete the current buffer<leader>bcforce close all non-visible buffers<leader>bffind buffers
Telescope shortcuts:
<leader>fffind files<leader>fglive grep<leader>fblist buffers<leader>fhbrowse help tags
Git shortcuts:
:Gitto run commands directly (:Git status,:Git log --oneline)<leader>lgopen LazyGit<leader>dvopen Diffview<leader>dcclose Diffview[h,]h,[H,]Hjump to hunks<leader>th— toggle the expanded hunk view
Oil usage:
-,<BS>goes to the parent directory<C-p>previews the selected entry
Toggle shortcuts:
<leader>twtoggle soft wrap<leader>tstoggle spell checking<leader>titoggle inline diagnostics<leader>tvtoggle virtual diagnostics<leader>th— toggle the expanded hunk view
Terminal
Two options to leave terminal mode and return to normal mode:
<\\-Esc>
<C-Esc>
LSP
Useful Mason commands:
:Mason
:MasonLog
:checkhealth mason
Useful LSP commands:
Kshow the type and documentation for the symbol under the cursorgdgo to definitiongDgo to declarationgrdlist referencesgrnrename symbol<leader>cashow code actions<leader>cfapply quick fixes<leader>csshow source actions<C-x><C-n>manually word completion
Diagnostics:
g.open diagnostic floatglsend diagnostics to the location listglddisplay diagnostic information]g,[gjump to warning or error<leader>titoggle inline diagnostics<leader>tvtoggle virtual diagnostics<leader>xx,:ProjectDiagnosticscheck the current Dart or TypeScript package and show warnings and errors in Trouble. Save modified package files first. Other languages show available LSP diagnostics; project coverage depends on the language server.
Tree-sitter
tree-sitter-cli and a C compiler is required to be installed.
Useful commands:
:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter