mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-28 15:41:55 +01:00
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 BufNewFile,BufRead *.ecr setlocal syntax=html
|
||||||
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
||||||
augroup cdgit
|
|
||||||
autocmd!
|
|
||||||
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
||||||
augroup END
|
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user