...
 
......@@ -109,8 +109,8 @@
remote = green
[color "diff"]
meta = yellow
frag = magenta
meta = 238 italic
frag = 240
old = red strike
new = green italic
whitespace = red reverse
......
......@@ -43,26 +43,29 @@ let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'javascript.jsx': ['eslint'],
\ 'typescript': ['eslint'],
\ 'typescript.tsx': ['eslint'],
\ 'typescriptreact': ['eslint'],
\}
" ESLint --fix is so slow to run it as part of the fixers, so I do this using a precommit hook or something else
let g:ale_fixers = {
\ '*' : ['remove_trailing_lines', 'trim_whitespace'],
\ 'markdown' : ['prettier'],
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier'],
\ 'css' : ['prettier'],
\ 'json' : ['prettier'],
\ 'scss' : ['prettier'],
\ 'yaml' : ['prettier'],
\ 'graphql' : ['prettier'],
\ 'html' : ['prettier'],
\ 'reason' : ['refmt'],
\ 'python' : ['black'],
\ 'sh' : ['shfmt'],
\ 'bash' : ['shfmt'],
\ 'rust' : ['rustfmt'],
\ 'go' : ['gofmt'],
\ '*' : ['remove_trailing_lines', 'trim_whitespace'],
\ 'markdown' : ['prettier'],
\ 'javascript' : ['prettier'],
\ 'typescript' : ['prettier'],
\ 'typescriptreact': ['prettier'],
\ 'css' : ['prettier'],
\ 'json' : ['prettier'],
\ 'scss' : ['prettier'],
\ 'yaml' : ['prettier'],
\ 'graphql' : ['prettier'],
\ 'html' : ['prettier'],
\ 'reason' : ['refmt'],
\ 'python' : ['black'],
\ 'sh' : ['shfmt'],
\ 'bash' : ['shfmt'],
\ 'rust' : ['rustfmt'],
\ 'go' : ['gofmt'],
\}
" Don't auto auto-format files inside `node_modules`, `forks` directory, minified files and jquery (for legacy codebases)
......
......@@ -5,7 +5,7 @@ let g:vim_markdown_fenced_languages = [
\'js=javascript',
\'jsx=javascript.jsx',
\'ts=typescript',
\'tsx=typescript.tsx',
\'tsx=typescriptreact',
\'json',
\'json5',
\'ruby',
......
......@@ -54,14 +54,6 @@ function! plugins#install_plugins() abort
call minpac#add('https://github.com/wincent/terminus')
call minpac#add('https://github.com/tommcdo/vim-lion')
call minpac#add('https://github.com/liuchengxu/vista.vim')
let g:vista#renderer#enable_icon = 1
let g:vista_executive_for = {
\ 'javascript': 'coc',
\ 'javascript.jsx': 'coc',
\ 'typescript': 'coc',
\ 'typescript.tsx': 'coc',
\ }
let g:vista_close_on_jump = 1
call minpac#add('https://github.com/christoomey/vim-tmux-navigator', {'type': 'opt'})
call minpac#add('https://github.com/tpope/vim-dispatch')
let g:dispatch_no_tmux_make = 1 " Prefer job strategy even in tmux.
......
......@@ -3,10 +3,12 @@ if !exists(':Vista')
endif
let g:vista#renderer#enable_icon = 1
let g:vista_close_on_jump = 1
let g:vista_executive_for = {
\ 'go': 'ctags',
\ 'javascript': 'coc',
\ 'typescript': 'coc',
\ 'javascript.jsx': 'coc',
\ 'python': 'coc',
\ 'go' : 'ctags',
\ 'javascript' : 'coc',
\ 'typescript' : 'coc',
\ 'typescriptreact': 'coc',
\ 'javascript.jsx' : 'coc',
\ 'python' : 'coc',
\ }
typescript.snippets
\ No newline at end of file