From 3d29474b66d3520905ec4f6031a9e6be54d12cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 25 Jan 2019 00:10:02 +0100 Subject: [PATCH] Add elm to vim --- configs/editors.nix | 4 ++-- configs/shells.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/editors.nix b/configs/editors.nix index e7bc1cb..5f56dfe 100644 --- a/configs/editors.nix +++ b/configs/editors.nix @@ -96,7 +96,7 @@ let vim_conf = '' autocmd bufnewfile,bufread *.ts :packadd vim-typescript autocmd bufnewfile,bufread *.journal :packadd vim-ledger | set filetype=ledger shiftwidth=4 autocmd bufnewfile,bufread config set filetype=conf - autocmd filetype haskell :packadd Hoogle + autocmd bufnewfile,bufread *.elm :packadd elm-vim | set filetype=elm shiftwidth=4 autocmd filetype haskell set formatprg=hindent autocmd filetype python set formatprg=black autocmd filetype javascript *.js :packadd vim-javascript @@ -174,7 +174,7 @@ in { vim-surround ]; opt = [ - Hoogle + elm-vim deoplete-rust idris-vim vimtex diff --git a/configs/shells.nix b/configs/shells.nix index 43cf5c6..a3d01d4 100644 --- a/configs/shells.nix +++ b/configs/shells.nix @@ -35,7 +35,7 @@ promptInit = '' PROMPT=$'%{\e[1m%}%~%{\e[0m%}' PROMPT="$PROMPT \$([[ \$? == 0 ]] && echo \"%{$fg_bold[green]%}\" || echo \"%{$fg_bold[red]%}\")\$(test $IN_NIX_SHELL && echo λ || echo %#)%{$reset_color%} " - RPROMPT='$(git_prompt_info)' + RPROMPT='$(git_prompt_info) $(date +%H:%M)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[cyan]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*"