Skip to content

Commit

Permalink
修改ale linters和fixers
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyf09 committed Feb 7, 2024
1 parent 6994208 commit 9b398b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/ftplugin/c.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if executable('gcc') == 0 && executable('clang')
endif

let b:ale_fixers = ['clang-format']
let b:ale_c_clangformat_options = '-style=file'
let b:ale_c_clangformat_options = '-style="{BasedOnStyle: Google, IndentWidth: 4}"'

" Let the matchit plugin know what items can be matched.
if exists("loaded_matchit")
Expand Down
2 changes: 2 additions & 0 deletions core/ftplugin/cpp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ if executable('gcc') == 0 && executable('clang')
let b:ale_linters.cpp += ['clang']
endif

let b:ale_fixers = ['clang-format']
let b:ale_cpp_clangformat_options = '-style="{BasedOnStyle: Google, IndentWidth: 4}"'
3 changes: 1 addition & 2 deletions core/ftplugin/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ endif
" \ 'remove_trailing_lines',
" \]

let b:ale_linters = ['flake8']
let b:ale_linters = ['ruff']
let b:ale_fixers = [
\ 'remove_trailing_lines',
\ 'isort',
\ 'yapf',
\]

Expand Down

0 comments on commit 9b398b4

Please sign in to comment.