Skip to content

NachiketNamjoshi/nvim.config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Backup your existing nvim config
mv ~/.config/nvim ~/.config/nvim.bak
  1. Clone the repo
git clone git@github.com:NachiketNamjoshi/nvim.config.git ~/.config/nvim
  1. Install Rust using Rustup if you don't already have it installed: https://rustup.rs/

  2. Install all plugins before actually using nvim

nvim --headless "+Lazy! sync" +qa
  1. Launch nvim

  2. (Optional) Run :Mason as it will install all the Language Servers

Language Servers

These are the language servers that are installed by default:

  • json-lsp
  • lua-language-server
  • bash-language-server
  • vim-language-server
  • dockerfile-language-server
  • css-lsp
  • html-lsp
  • pyright
  • rust-analyzer
  • typescript-language-server
  • clangd
  • gopls
  • phpactor
  • sqlls
  • yaml-language-server

Keybinds

The leader has been set to ,

Window navigation

  • Ctrl + h: Move cursor to left pane
  • Ctrl + j: Move cursor to below pane
  • Ctrl + k: Move cursor to above pane
  • Ctrl + l: Move cursor to right pane

Window Resizing

  • Ctrl + Up Arrow: Increase size horizontally
  • Ctrl + Down Arrow: Decrease size horizontally
  • Ctrl + Left Arrow: Increase size vertically
  • Ctrl + Right Arrow: Decrease size vertically

Buffers

  • Alt + 1-9: Go to Buffer #
  • Alt + 0: Go to last buffer
  • Alt + p: Pin current buffer
  • Alt + c: Close current buffer
  • Alt + ,: Go to Previous Buffer
  • Alt + .: Go to Next Buffer
  • Alt + <: Move Buffer to previous position
  • Alt + >: Move Buffer to next position

Telescope / File navigation

  • Ctrl + p: Telescope Find Files
  • Ctrl + b: Telescope Find Buffers
  • Ctrl + f: Telescope Find in files (Fuzzy text search)
  • Ctrl + d: Telescope Find in diagnostics

Multi-line / Multi-cursor

Code Navigation / Completion (LSP)

  • gD: Go to Declaration
  • gd: Go to Definition
  • K: Trigger Hover Manually (Show Documentation)
  • gi: Go to Implementations
  • Ctrl + g: Show signature help
  • gr: Go to / Show references
  • [d: Go to previous diagnostics
  • ]d: Go to next diagnostics
  • gl: Open diagnostics in floating window
  • <leader>r: Rename symbol under cursor
  • <leader>a: Show code actions

About

My nvim config. Built over years. Rewritten in lua.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages