Tweak VIM settings for JS/TS development
This commit is contained in:
+10
-5
@@ -59,7 +59,7 @@ set autowrite
|
|||||||
set autowriteall
|
set autowriteall
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set cmdheight=2
|
set cmdheight=2
|
||||||
set colorcolumn=120
|
set colorcolumn=100
|
||||||
set cursorline
|
set cursorline
|
||||||
set diffopt=filler,vertical
|
set diffopt=filler,vertical
|
||||||
set expandtab
|
set expandtab
|
||||||
@@ -86,7 +86,7 @@ set smarttab
|
|||||||
set statusline=%<%f\ %h%m%r%*%=%-14.(%l,%c%V%)\ %P
|
set statusline=%<%f\ %h%m%r%*%=%-14.(%l,%c%V%)\ %P
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set textwidth=120
|
set textwidth=100
|
||||||
set virtualedit=block
|
set virtualedit=block
|
||||||
set visualbell
|
set visualbell
|
||||||
set wildignore+=node_modules,log,build,dist
|
set wildignore+=node_modules,log,build,dist
|
||||||
@@ -144,18 +144,24 @@ let g:ale_sign_column_always = 1
|
|||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\'*': ['remove_trailing_lines', 'trim_whitespace'],
|
\'*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\'go': ['gofmt', 'goimports'],
|
\'go': ['gofmt', 'goimports'],
|
||||||
\'python': []
|
\'javascript': ['eslint'],
|
||||||
|
\'python': [],
|
||||||
|
\'typescript': ['eslint'],
|
||||||
|
\'typescriptreact': ['eslint']
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\'go': ['gobuild', 'golint', 'govet'],
|
\'go': ['gobuild', 'golint', 'govet'],
|
||||||
\'html': [],
|
\'html': [],
|
||||||
|
\'javascript': ['eslint'],
|
||||||
\'json': ['jsonlint'],
|
\'json': ['jsonlint'],
|
||||||
\'pug': ['puglint'],
|
\'pug': ['puglint'],
|
||||||
\'python': ['pycodestyle', 'pydocstyle', 'pyflakes', 'pyls'],
|
\'python': ['pycodestyle', 'pydocstyle', 'pyflakes', 'pyls'],
|
||||||
\'typescript': ['tslint', 'tsserver'],
|
\'typescript': ['eslint', 'tsserver'],
|
||||||
|
\'typescriptreact': ['eslint', 'tsserver'],
|
||||||
\'vue': ['vls']
|
\'vue': ['vls']
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_virtualenv_dir_names = ['usr']
|
let g:ale_virtualenv_dir_names = ['usr']
|
||||||
|
|
||||||
" Key Mappings #########################################################################################################
|
" Key Mappings #########################################################################################################
|
||||||
@@ -184,7 +190,6 @@ silent! source .vimrc.local " project specific .vimrc
|
|||||||
|
|
||||||
autocmd BufRead COMMIT_EDITMSG set textwidth=70 colorcolumn=70
|
autocmd BufRead COMMIT_EDITMSG set textwidth=70 colorcolumn=70
|
||||||
autocmd BufRead Makefile setlocal noexpandtab
|
autocmd BufRead Makefile setlocal noexpandtab
|
||||||
autocmd BufRead *.coffee set textwidth=120 colorcolumn=120
|
|
||||||
autocmd BufRead *.mako set syntax=mako
|
autocmd BufRead *.mako set syntax=mako
|
||||||
autocmd BufRead *.go set noexpandtab
|
autocmd BufRead *.go set noexpandtab
|
||||||
autocmd BufRead *.go set listchars=tab:\ \ ,
|
autocmd BufRead *.go set listchars=tab:\ \ ,
|
||||||
|
|||||||
Reference in New Issue
Block a user