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:
parent
5552b5c743
commit
578190d486
@ -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; [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user