Neovim Config for Git

Creating a minimal config specifically for git commits has made running
git commit much more pleasant. It starts up Much faster, and has all
of the parts of my config that I use while making a git commit. The one thing that I often use is autocomplet…


This content originally appeared on DEV Community and was authored by Waylon Walker

Creating a minimal config specifically for git commits has made running
git commit much more pleasant. It starts up Much faster, and has all
of the parts of my config that I use while making a git commit. The one thing that I often use is autocomplete, for things coming from elsewhere in the tmux session. For this cmpe-tmux specifically is super helpful.

The other thing that is engrained into my muscle memory is jj for escape. For that I went agead and added my settings and keymap with no noticable performance hit.

Here is the config that has taken

~/.config/nvim/init-git.vim

source ~/.config/nvim/settings.vim source ~/.config/nvim/keymap.vim source ~/.config/nvim/git-plugins.vim lua require'waylonwalker.cmp'

~/.config/nvim/git-plugins.vim

call plug#begin('~/.local/share/nvim/plugged')

" cmp
Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-calc' Plug 'andersevenrud/compe-tmux', { 'branch': 'cmp' }


call plug#end()

~/.gitconfig

[core]
    editor = nvim -u ~/.config/nvim/init-git.vim


This content originally appeared on DEV Community and was authored by Waylon Walker


Print Share Comment Cite Upload Translate Updates
APA

Waylon Walker | Sciencx (2022-02-04T17:23:17+00:00) Neovim Config for Git. Retrieved from https://www.scien.cx/2022/02/04/neovim-config-for-git/

MLA
" » Neovim Config for Git." Waylon Walker | Sciencx - Friday February 4, 2022, https://www.scien.cx/2022/02/04/neovim-config-for-git/
HARVARD
Waylon Walker | Sciencx Friday February 4, 2022 » Neovim Config for Git., viewed ,<https://www.scien.cx/2022/02/04/neovim-config-for-git/>
VANCOUVER
Waylon Walker | Sciencx - » Neovim Config for Git. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/04/neovim-config-for-git/
CHICAGO
" » Neovim Config for Git." Waylon Walker | Sciencx - Accessed . https://www.scien.cx/2022/02/04/neovim-config-for-git/
IEEE
" » Neovim Config for Git." Waylon Walker | Sciencx [Online]. Available: https://www.scien.cx/2022/02/04/neovim-config-for-git/. [Accessed: ]
rf:citation
» Neovim Config for Git | Waylon Walker | Sciencx | https://www.scien.cx/2022/02/04/neovim-config-for-git/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.