[vim] Elm config
This commit is contained in:
parent
60a09c7393
commit
bc0ab1f969
2 changed files with 19 additions and 0 deletions
|
@ -14,4 +14,6 @@ TAGS
|
||||||
.nix-profile
|
.nix-profile
|
||||||
.netrwhist
|
.netrwhist
|
||||||
.esd_auth
|
.esd_auth
|
||||||
|
.yarnrc
|
||||||
|
|
||||||
pavucontrol.ini
|
pavucontrol.ini
|
||||||
|
|
17
.vim/ftplugin/elm.vim
Normal file
17
.vim/ftplugin/elm.vim
Normal file
|
@ -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 <C-]>
|
||||||
|
|
||||||
|
autocmd BufWritePost *.elm call system('ctags -R . ~/.elm/0.19.0/') |
|
Loading…
Add table
Reference in a new issue