[nvim] more ALE settings
This commit is contained in:
parent
6bd94943ad
commit
4f334c0256
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"diagnostic.displayByAle": true,
|
||||
"python.pythonPath": "python",
|
||||
"python.linting.flake8Enabled": true,
|
||||
"python.analysis.autoSearchPaths": true,
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"languageserver": {
|
||||
|
|
2
.config/nvim/ftplugin/python.vim
Normal file
2
.config/nvim/ftplugin/python.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
" let b:ale_linters = ['pyre', 'flake8']
|
||||
let b:ale_fixers = ['autoimport', 'isort', 'remove_trailing_lines', 'trim_whitespace'],
|
|
@ -11,8 +11,17 @@ filetype indent on
|
|||
set path+=**
|
||||
set wildmenu
|
||||
|
||||
" disable ale lsp
|
||||
" ALE
|
||||
let g:ale_disable_lsp = 1
|
||||
let g:ale_sign_column_always = 1
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_set_balloons = 1
|
||||
let g:ale_hover_to_preview = 1
|
||||
let g:ale_floating_preview = 1
|
||||
|
||||
let g:ale_fixers = {
|
||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||
\}
|
||||
|
||||
" With a map leader it's possible to do extra key combinations
|
||||
" like <leader>w saves the current file
|
||||
|
|
Loading…
Reference in a new issue