Skip to content

Repository files navigation

My personal NeoVim config

Installation

  1. Clone this repo to your ~/.config/nvim

  2. Run the following command to install all the plugins in headless mode

    nvim --headless '+Lazy! sync' +qa
  3. Open any file using nvim for the first time to initiate treesitter and mason plugins

  4. run the following command to install additional mason plugins

    :MasonToolsInstallSync
  5. You should good to go!

Plugins

Essentials

Editor

Extras

Completion

Debugging

Git

Testing

Keymaps

  • Diagnostics
    • [d and ]d : Jump to previous and next diagnostics
    • [e and ]e : Jump to previous and next error diagnostics
    • [w and ]w : Jump to previous and next warning diagnostics
    • <leader>+ee : Open floating diagnostic message
    • <leader>+ew : Open all diagnostics
    • <leader>+eb : Open buffer diagnostic
  • Buffer
    • < and > : Dedent and Indent line(s) on visual mode
    • ALT+j/k : Move line(s) down or up
    • <leader>+fo : Format current buffer
  • Panes / Splits
    • ALT+Up/Down arrow : Increase or decrease window height
    • ALT+Left/Right arrow : Decrease or increase window width
    • CTRL+h/j/k/l : Jump to left, below, above or right window
    • CTRL+` : Toggle integrated terminal
  • Language Services
    • K : Show signature help
    • gd : Goto Definition
    • gD : Goto Declaration
    • gr : Goto References
    • gi : Goto Implementation
    • gy : Goto Type Definition
    • <leader>+s : Workspace Symbols
    • <leader>+ss : Document Symbols
    • <leader>+rn : Rename Symbol
    • <C-.> : Code Action
  • Git
    • <leader>+gg : Open lazygit
    • <leader>+gl : Open Git Log
    • Hunks
      • [h and ]h : Jump to previous and next hunk
      • [H and ]H : Jump to first and last hunk
      • <leader>+hs : Toggle Stage Hunk
      • <leader>+hS : Toggle Stage Buffer
      • <leader>+hr : Reset Hunk
      • <leader>+hR : Reset Buffer
      • <leader>+h? : Toggle Preview Hunk
    • Conflicts
      • <leader>+co : Choose ours
      • <leader>+ct : Choose theirs
      • <leader>+c0 : Choose none
      • <leader>+cb : Choose both
  • File Navigations
    • TAB or SHIFT+TAB : Navigate to next or previous buffers (normal mode)
    • n : Next search result and keep the cursor in the center
    • N : Previous search result and keep the cursor in the center
    • <leader>+f : File explorer
    • <leader>+ff : Find Buffers
    • <leader>+fg : Find File in current git repo
    • <leader>+r : Rename File
    • <leader>+<space> : Find files
    • <C-f> : Live grep
    • <C-p> : Projects Picker
  • Testing
    • <leader>+t : Toggle Test Summary
    • <leader>+tr : Test Run
    • <leader>+tx : Test stop
    • <leader>+td : Test run with DAP
    • <leader>+tf : Test File
    • <leader>+ts : Test Suite
    • <leader>+to : Test Output
    • <leader>+tp : Test Output Panel
  • Debugging
    • F1 : Debug: Step into
    • F2 : Debug: Step over
    • F3 : Debug: Step out
    • F4 : Debug: Step back
    • F5 : Start debugger
    • F7 : Toggle DAP UI
    • <leader>+db : Toggle breakpoint
    • <leader>+dc : Clear all breakpoints
    • <leader>+dd : Evaluate value under the cursor

License

This repo is licensed under WTFPL

About

My personal NeoVim config

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages