vim: misc cleanup

feature/symbol-search
bretello 2020-11-13 13:33:21 +01:00
parent dcedb55fbc
commit 53e94659f3
1 changed files with 10 additions and 13 deletions

View File

@ -1,14 +1,15 @@
" colorscheme peaksea
colorscheme twilight256
" colorscheme solarized "fallback if twilight is not available
let g:ale_set_balloons = 1
set mouse=a relativenumber number foldmethod=indent nofoldenable "without nofoldenable all folds are closed at startup"
set foldlevelstart=3
set ttymouse=xterm2 " fix mouse when used in tmux/byobu https://unix.stackexchange.com/q/50733
set clipboard=unnamed " always use system clipboard
set splitbelow splitright
set autoread
set nowrap
set showtabline=2 laststatus=2 " fix statusline (FIX WHAT???)
" ALE configuration
let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
@ -20,38 +21,34 @@ let g:ale_fixers = {
\ 'css': ['prettier'],
\ 'html': ['prettier'],
\ 'markdown': ['prettier'],
\ 'yaml': ['prettier'],
\ 'python': ['black', 'isort'],
\ 'go': ['gofmt', 'goimports'],
\ 'rust': ['rustfmt'],
\ "javascript": ["prettier", "eslint"],
\ "vue": ["prettier", "eslint"]
\}
let g:ale_python_bandit_options = "-c banditrc"
let g:ale_python_isort_options = "--rc"
let g:ale_python_pylint_options = "--rcfile pylintrc --disable=W0511"
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
let g:ale_linters = {
\ 'bash': ['bashlint', "shellcheck"],
\ 'go': ['golangci-lint'],
\ 'python': ['pyls', 'pylint', 'mypy', 'bandit'],
\ 'python': ['pyls', 'pylint', 'bandit', 'mypy'],
\ 'rust': ['rustc'],
\ 'yaml': ['yamllint'],
\ 'javascript': ["yarn lint", "eslint", "vls"]
\}
let g:ale_lint_on_insert_leave = 1
let g:ale_fix_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1
let g:ack_default_options = " --cc --cpp --shell --python --html --js --vue"
let g:ale_set_quickfix=1
let g:ale_set_loclist=0
" let g:ale_open_list = 1
" let g:ale_keep_list_window_open = 0
" let g:ale_lint_on_save = 1
let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
" let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1
let g:ale_completion_enabled = 1