1
0
forked from extern/nix-config

neovim: Simplify cd command

augroup shouldn't be needed since this command is only ran once anyway.
This commit is contained in:
Donovan Glover 2023-06-08 20:54:17 -04:00
parent 5552b5c743
commit 578190d486
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -60,10 +60,7 @@ in {
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
augroup cdgit
autocmd!
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
augroup END
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
'';
plugins = with pkgs.vimPlugins; [
{