From bc0ab1f969578c45a8ae1c9b0ddef7430b89d69e Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 26 Aug 2019 14:45:08 +0200 Subject: [PATCH] [vim] Elm config --- .gitignore_global | 2 ++ .vim/ftplugin/elm.vim | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .vim/ftplugin/elm.vim diff --git a/.gitignore_global b/.gitignore_global index 9348a7f..32de00c 100644 --- a/.gitignore_global +++ b/.gitignore_global @@ -14,4 +14,6 @@ TAGS .nix-profile .netrwhist .esd_auth +.yarnrc + pavucontrol.ini diff --git a/.vim/ftplugin/elm.vim b/.vim/ftplugin/elm.vim new file mode 100644 index 0000000..e1fa76f --- /dev/null +++ b/.vim/ftplugin/elm.vim @@ -0,0 +1,17 @@ +" Elm compiler, auto formatting and jump to definition. +" +" - Install elm and make an executable ``elm-make`` that's in PATH +" (if elm > " 0.18). +" - Install elm-format and put it in in PATH. +" - Ctags for goto definition. :( +" +set number + +let b:ale_linters = ['make'] +let b:ale_fixers = ['elm-format'] +let g:ale_elm_make_use_global = 1 +let g:elm_setup_keybindings = 0 + +nnoremap gd + +autocmd BufWritePost *.elm call system('ctags -R . ~/.elm/0.19.0/') |