- Ensure to install the following dependencies using your package manager:
- Install the config
-
backup your existing config:
# required mv ~/.config/nvim{,.bak} # optional but recommended mv ~/.local/share/nvim{,.bak} mv ~/.local/state/nvim{,.bak} mv ~/.cache/nvim{,.bak}
-
clone Exquisite Config:
git clone https://github.com/ejsadiarin/best-neovim-config.git ~/.config/nvim # Remove the git folder so you can add to your own repo rm -rf ~/.config/nvim/.git
-
start nvim to install plugins:
nvim
- root/dynamic - telescope searches via git root based on current active buffer (respects
.gitignore
) - cwd - where you opened
nvim
command (aftercd
-ing to dirs)
<leader>ff
- find files (root/dynamic)<leader>fH
- find files from home<leader>fp
- find projects (useful for changing cwd)<leader>fr
- find recent files<leader>fS
- file system (cwd)<leader>fs
- file system (root/dynamic)<leader>xx
- diagnostics (current buffer)<leader>xX
- diagnostics (workspace)
<leader>fh
- find harpoon marks (workspace)<leader>ha
- add harpoon marks (workspace)<C-n> and <C-p>
- cycle through harpoon marks (workspace)
<leader>sg
- live grep with args (root/dynamic)- combo:
<leader>sg
search: "" //
- combo:
<leader>sG
- live grep with args from home<leader><space>
- manual grep via command, output through quickfix list (xq):- ex.
:silent grep Foo src/components/
<leader>xq
- quickfix list (for grep output)
- ex.
<leader>gg
- open lazygit (root/dynamic)<leader>gs
- git status (root/dynamic)
- A starter template for LazyVim.
- Refer to the documentation to get started.