Skip to content

kbrashem/neovim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim config

Install

  1. Install neovim i.e. sudo apt install neovim or brew install neovim or sudo dnf install neovim
  2. Install nerdfont `wget -P ~/.local/share/fonts_tmp https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/JetBrainsMono.zip && unzip ~/.local/share/fonts_tmp/JetBrainsMono.zip -d ~/.local/share/fonts_tmp && mkdir -p ~/.local/share/fonts && mv ~/.local/share/fonts_tmp/JetBrainsMonoNerdFont-* ~/.local/share/fonts && rm -rf ~/.local/share/fonts_tmp && fc-cache -fv'
  3. Choose nerdfont in terminal settings
  4. git clone https://github.com/kbrashem/neovim-config.git ~/.config/nvim
  5. Open neovim nvim and Lazy will install plugins
  6. Run :MasonInstallAll to install all mason dependencies (LSPs and formatters)
  7. Authenticate github copilot :Copilot auth if necessary

nvim shortcuts

General

  • Ctrl + n - Toggle file explorer
  • Alt + h - Open terminal below
  • <leader> + h - Open new terminal below
  • :noa w - Save without autoformat
  • <leader> + ch - Open cheatsheet
  • :Telescope keymaps - Show keymaps

LSP

  • :LspInfo - Show LSP information
  • gd - Go to definition
  • K - Hover
  • Ctrl + e - Exit suggestions

Copilot

  • Ctrl + f - Trigger completion
  • Alt + ] - Suggest another completion
  • :CopilotChat <message> - Send a message to Copilot
  • :CopilotChat - Open chat window

Conform

  • :Conform - See the logs

Fold

  • za - Toggle Fold
  • zc - Close Fold
  • zo - Open Fold
  • zA - Open all Folds
  • zM - Close all Folds

About

Neovim configuration file built on NvChad starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages