Skip to content

Commit

Permalink
[Vim] Remove useless header handling with new version of ALE.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopauss committed Sep 26, 2022
1 parent 0d5f5bd commit 0c05f7c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions dotfiles/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,6 @@ let g:ale_python_auto_poetry = 1
highlight link ALEWarningSign String
highlight link ALEErrorSign Title

function! AleLintersClangHeaderGetCommand(buffer, output) abort
let l:c_opts = ale#Var(a:buffer, 'c_clang_options')
let l:h_opts = ' -Wno-unused-function -x c-header'

call setbufvar(a:buffer, 'ale_c_clang_options', l:c_opts . l:h_opts)
return ale_linters#c#clang#GetCommand(a:buffer, a:output)
endfunction

let g:ale_pattern_options = {
\ '\.h$': {
\ 'ale_linters': ['cc']
\ }
\}

let g:ale_linters = {
\ 'c': ['cc'],
\ 'javascript': ['eslint'],
Expand Down

0 comments on commit 0c05f7c

Please sign in to comment.