/nvim

The lua config files for my neovim setup

Primary LanguageLua

Neovim Config

The lua config files for my neovim setup
I mainly use 💤 lazy.nvim for plugin management, gruvbox as colorscheme and lualine as status bar

Usage

git clone https://github.com/math-queiroz/nvim ~/.config

Features

Plugins

A complete list of plugins can be found in the lua/plugins/lazy.lua file

Keybinds

A list of keybindings can be found in the lua/keybinds.lua file, and some other keybindings (like for telescope) are spread around theirs plugins definition files

The leader key is defined to Space

Global

  • Esc - No highlight

  • Alt j - Move line up

  • Alt k - Move line down

  • ' " - Surround in double quotes

  • ' ' - Surround in simple quotes

  • ' { - Surround in curly brackets

  • ' [ - Surround in brackets

  • ' { - Surround in parenthesis

  • ' < - Surround in less than symbol

Bufferline

  • Tab - Next tab
  • Shift Tab - Previous tab
  • Leader q - Close file

Comment

  • Ctrl k - Comment line/block

GitSigns

  • Leader gd - Git diff
  • Leader gh - Git line highlights
  • Leader gj - Go to next hunk
  • Leader gk - Go to previous hunk
  • Leader gy - Stage hunk
  • Leader gr - Reset hunk
  • Leader ga - Stage hunk

NvimTree

  • Ctrl w Ctrl e - Open directory tree

Troubleshoot

  • On Windows, it may be required to manually clone coq_nvim on a terminal as administrator with symlinks enabled (as from ms-jpq/coq_nvim#589 (comment));
    Fix with: cd $Env.LocalAppdata/nvim-data/lazy && rm -Force coq_nvim && git -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git