Neovim must be above 0.5 to work well with lua config, and some plugin need 0.7 version.
<leader>+increase first number in line after the cursor<leader>-decrease first number in line after the cursor<leader>oclose other splits<leader>wclose buffer<leader>qquit all<F5>Refresh buffer<leader>erefresh buffer<C-↑→↓←>to move into panes
<leader>tto switch dark|light theme<leader>gtoggle goyo view mode
]cnext hunk[cnext hunk<leader>hsstage hunk<leader>hrreset hunk<leader>huundo hunk<leader>hppreview hunk<leader>hbpreview hunk in popup<leader>tbpreview hunk in line<leader>hddiff current file
<leader>ffind file with git<leader>fgfind file with grep<leader>ftfind file with tag
<C-k>&<C-j>to move
Some lsp server work only inside project folder, needing git or composer…
<CR>to choose selected suggestion
gfshow definitiongDgot to declarationgdsee definitiongigo to implementation<leader>casee available code actions<leader>rnsmart rename<leader>Dshow diagnostics[dgo to next dianostic]dgo to previous dianosticKshow documentation<leader>sshow structure<leader>fformat current buffer
<leader>rfrename file & update imports<leader>oiorganize imports<leader>ruremove unused variables
:Aalternate between file & test:Rjump to related controller->view:Emodeljump to related model:Smodelsame but in split:Vmodelsame but in vsplit:Tmodelsame but in tab:Eviewjump to related view:Sviewsame but in split:Vviewsame but in vsplit:Tviewsame but in tab:Econtrollerjump to related controller:Scontrollersame but in split:Vcontrollersame but in vsplit:Tcontrollersame but in tab:Emodel foo!to automatically create the file with the standard boilerplate if it doesn't exist:Rails consoleto callrails console:Generate controller ControllerNamegenerate controller and loads the generated files into the quickfix list:Rails(with no arguments) to run the current test, spec, or feature:.Railsto do a focused run of just the method, example, or scenario on the current line:Extract {file}replaces the desired range (typically selected in visual line mode) with render '{file}'help rails-:Extract
:help rails-navigation
<leader>=interactively align selection
- https://teukka.tech/luanvim.html
- https://github.com/nanotee/nvim-lua-guide
- https://medium.com/linux-with-michael/a-list-of-all-my-main-neovim-plugins-8ac4ae107e16
- https://vonheikemen.github.io/devlog/tools/build-your-first-lua-config-for-neovim/
- https://github.com/josean-dev/dev-environment-files
- https://marioyepes.com/neovim-ide-with-lua-for-web-development/
To check run :checkhealth in neovim
- Check latest version of
pynvimis installed (via pip) - Check npm neovim is installed, but still no enough
To get started, first clone this repository to somewhere on your packpath, e.g.:
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvimYou must run this or
PackerSyncwhenever you make changes to your plugin configuration Regenerate compiled loader file:PackerCompile
ripgrepfd-findpython3pippynvimnpmneovimeslint
nerd fontcomposerphpcs
