Skip to content

Commit

Permalink
set kazoo_erlc properly, set ale_linsters properly
Browse files Browse the repository at this point in the history
  • Loading branch information
icehess committed Sep 4, 2021
1 parent 20cce19 commit 7e5f368
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .dotfiles-site/files/vim/kazoo-settings
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
" vim: set ft=vim:

let g:ale_linters = {
\ 'erlang': ['kazoo_erlc'],
\}
let g:ale_linters['erlang'] = ['kazoo_erlc']

let s:cur_dir = expand('<sfile>:h')

Expand Down
1 change: 0 additions & 1 deletion .vim/ftplugin/javascript.vim

This file was deleted.

1 change: 0 additions & 1 deletion .vim/ftplugin/typescript.vim

This file was deleted.

23 changes: 14 additions & 9 deletions .vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,6 @@ augroup VimDiff
autocmd VimEnter,FilterWritePre * if &diff | ALEDisable | endif
augroup END


" Ale
let g:ale_linters = {
\ 'json': ['jsonlint'],
\ 'javascript': ['tsserver'],
\ }

let g:ale_hover_to_floating_preview= 1

" Lightline
function! LightlineLinterWarnings() abort
let l:counts = ale#statusline#Count(bufnr(''))
Expand Down Expand Up @@ -928,6 +919,20 @@ nmap - <Plug>(choosewin)
" " n... : where to save the viminfo files
" set viminfo='10,\"100,:20,%,n~/.viminfo"'

" Ale
let g:ale_linters = {
\ 'json': ['jsonlint'],
\ 'javascript': ['eslint'],
\ 'typescript': ['tsserver', 'eslint']
\}

let g:ale_fixers = {
\ 'javascript': ['prettier', 'eslint'],
\ 'typescript': ['prettier', 'eslint'],
\ }

let g:ale_hover_to_floating_preview= 1


" ----------------------------------------------------------------------------
" HOST-SPECIFIC VIM FILE
Expand Down

0 comments on commit 7e5f368

Please sign in to comment.