ejsadiarin / best-neovim-config

[moved to dotfiles repo] gruvbox main bruv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exquisite Nvim Config

  1. Ensure to install the following dependencies using your package manager:
  1. 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

Workflow

NOTE:

  • root/dynamic - telescope searches via git root based on current active buffer (respects .gitignore)
  • cwd - where you opened nvim command (after cd-ing to dirs)

Main commands:

  • <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)

Harpoon

  • <leader>fh - find harpoon marks (workspace)
  • <leader>ha - add harpoon marks (workspace)
  • <C-n> and <C-p> - cycle through harpoon marks (workspace)

Grepping

  • <leader>sg - live grep with args (root/dynamic)
    • combo: <leader>sg search: "" //
  • <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)

Git

  • <leader>gg - open lazygit (root/dynamic)
  • <leader>gs - git status (root/dynamic)

Powered by 💤 LazyVim

About

[moved to dotfiles repo] gruvbox main bruv

License:Apache License 2.0


Languages

Language:Lua 100.0%