Ruff it up a bit
This commit is contained in:
10
base/.vimrc
10
base/.vimrc
@@ -31,16 +31,20 @@ set nofoldenable " Fuck autofolding
|
|||||||
|
|
||||||
" ALE
|
" ALE
|
||||||
let g:ale_completion_enabled = 1
|
let g:ale_completion_enabled = 1
|
||||||
|
set completeopt=menu,menuone,noselect
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'python': ['pylsp'],
|
\ 'python': ['pylsp', 'ruff'],
|
||||||
\}
|
\}
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'python': ['black', 'isort'],
|
\ 'python': ['ruff'],
|
||||||
\}
|
\}
|
||||||
let g:ale_python_isort_options = '--profile black'
|
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save = 1
|
||||||
|
|
||||||
|
" Tab completion on ALE
|
||||||
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<BS>"
|
||||||
|
|
||||||
" Lightline
|
" Lightline
|
||||||
set noshowmode
|
set noshowmode
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
|
|||||||
Reference in New Issue
Block a user