[UPDATE][VIM] Move filetype files to 'after/'
This commit is contained in:
parent
e46d347c61
commit
6dd31874c8
12 changed files with 0 additions and 0 deletions
8
vim/.vim/after/ftplugin/bash.vim
Normal file
8
vim/.vim/after/ftplugin/bash.vim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
" Use shfmt as ALE fixer for bash
|
||||
let b:ale_fixers=[ 'shfmt' ]
|
||||
|
||||
" Indent with 4 spaces, simplify script, indent switch cases, use Bash variant
|
||||
let b:ale_sh_shfmt_options='-i 4 -s -ci -ln bash'
|
||||
|
||||
" Use bash dialect explicitly, require explicit empty string test
|
||||
let b:ale_sh_shellcheck_options='-s bash -o avoid-nullary-conditions'
|
||||
2
vim/.vim/after/ftplugin/c.vim
Normal file
2
vim/.vim/after/ftplugin/c.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Use compile_commands.json to look for additional flags
|
||||
let b:ale_c_parse_compile_commands=1
|
||||
2
vim/.vim/after/ftplugin/cpp.vim
Normal file
2
vim/.vim/after/ftplugin/cpp.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Use compile_commands.json to look for additional flags
|
||||
let b:ale_c_parse_compile_commands=1
|
||||
2
vim/.vim/after/ftplugin/d.vim
Normal file
2
vim/.vim/after/ftplugin/d.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Use my desired ALE fixer for D
|
||||
let b:ale_fixers=[ 'dfmt' ]
|
||||
2
vim/.vim/after/ftplugin/gitcommit.vim
Normal file
2
vim/.vim/after/ftplugin/gitcommit.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Enable spell checking on commit messages
|
||||
setlocal spell
|
||||
2
vim/.vim/after/ftplugin/json.vim
Normal file
2
vim/.vim/after/ftplugin/json.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Use my desired ALE fixer for JSON
|
||||
let b:ale_fixers=[ 'jq' ]
|
||||
2
vim/.vim/after/ftplugin/pandoc.vim
Normal file
2
vim/.vim/after/ftplugin/pandoc.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Let ALE know that I want Markdown linters
|
||||
let b:ale_linter_aliases=[ 'markdown' ]
|
||||
21
vim/.vim/after/ftplugin/python.vim
Normal file
21
vim/.vim/after/ftplugin/python.vim
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
" Use my desired ALE fixers for python
|
||||
let b:ale_fixers=[ 'black', 'isort' ]
|
||||
" Use my desired ALE linters for python
|
||||
let b:ale_linters=[ 'flake8', 'mypy', 'pylint', 'pyls' ]
|
||||
|
||||
"let b:ale_python_pyls_executable='pyls'
|
||||
let b:ale_python_pyls_auto_pipenv=1
|
||||
|
||||
" Disable pycodestyle checks from pyls because I'm already using flake8
|
||||
let b:ale_python_pyls_config={
|
||||
\ 'pyls': {
|
||||
\ 'plugins': {
|
||||
\ 'pycodestyle': {
|
||||
\ 'enabled': v:false
|
||||
\ },
|
||||
\ },
|
||||
\ },
|
||||
\ }
|
||||
|
||||
" Change max length of a line to 88 for this buffer to match black's settings
|
||||
setlocal colorcolumn=88
|
||||
7
vim/.vim/after/ftplugin/qf.vim
Normal file
7
vim/.vim/after/ftplugin/qf.vim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
" Use h/l to go to the previous/next non-empty quickfix or location list
|
||||
nnoremap <silent> <buffer> h :call quickfixed#older()<CR>
|
||||
nnoremap <silent> <buffer> l :call quickfixed#newer()<CR>
|
||||
|
||||
" Use left/right to go to the previous/next non-empty quickfix or location list
|
||||
nnoremap <silent> <buffer> <Left> :call quickfixed#older()<CR>
|
||||
nnoremap <silent> <buffer> <Right> :call quickfixed#newer()<CR>
|
||||
2
vim/.vim/after/ftplugin/rust.vim
Normal file
2
vim/.vim/after/ftplugin/rust.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
" Use rustfmt as ALE fixer for rust
|
||||
let b:ale_fixers=[ 'rustfmt' ]
|
||||
8
vim/.vim/after/ftplugin/sh.vim
Normal file
8
vim/.vim/after/ftplugin/sh.vim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
" Use shfmt as ALE fixer for sh
|
||||
let b:ale_fixers=[ 'shfmt' ]
|
||||
|
||||
" Indent with 4 spaces, simplify the code, indent switch cases, use POSIX
|
||||
let b:ale_sh_shfmt_options='-i 4 -s -ci -ln posix'
|
||||
|
||||
" Require explicit empty string test
|
||||
let b:ale_sh_shellcheck_options='-o avoid-nullary-conditions'
|
||||
8
vim/.vim/after/ftplugin/zsh.vim
Normal file
8
vim/.vim/after/ftplugin/zsh.vim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
" Use shfmt as ALE fixer for zsh
|
||||
let b:ale_fixers=[ 'shfmt' ]
|
||||
|
||||
" Indent with 4 spaces, simplify script, indent switch cases, use Bash variant
|
||||
let b:ale_sh_shfmt_options='-i 4 -s -ci -ln bash'
|
||||
|
||||
" Use bash dialect explicitly, require explicit empty string test
|
||||
let b:ale_sh_shellcheck_options='-s bash -o avoid-nullary-conditions'
|
||||
Loading…
Add table
Add a link
Reference in a new issue