-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc.local
30 lines (26 loc) · 890 Bytes
/
vimrc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
map <C-n> :NERDTreeToggle<CR>
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction
autocmd BufWritePre * :call TrimWhiteSpace()
let g:ale_pattern_options = {
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []},
\ '\.min\.css$': {'ale_linters': [], 'ale_fixers': []},
\}
let g:ale_fixers = {
\ 'typescript': ['prettier'],
\ 'typescript.tsx': ['prettier'],
\ 'javascript': ['prettier'],
\ 'javascript.jsx': ['prettier'],
\ 'json': ['prettier'],
\ 'scss': ['prettier'],
\ 'bash': ['shfmt'],
\ 'zsh': ['shfmt'],
\ 'elixir': ['mix_format'],
\ 'ruby': ['rubocop'],
\ 'rust': ['rustfmt'],
\ 'elm': ['elm-format'],
\}
let g:ale_sh_shfmt_options = '-i 2 -ci'
let g:ale_fix_on_save = 1
set spell spelllang=en_us