-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvim-dev-vimrc
100 lines (82 loc) · 3.2 KB
/
vim-dev-vimrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugins - development
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" maralla/completor.vim
let g:completor_php_omni_trigger = '([$\w]{2,}|use\s*|->[$\w]*|::[$\w]*|implements\s*|extends\s*|class\s+[$\w]+|new\s*)$'
imap <expr><TAB> pumvisible() ? "\<C-N>" : "\<TAB>"
smap <expr><TAB> pumvisible() ? "\<C-N>" : "\<TAB>"
imap <expr><S-TAB> pumvisible() ? "\<C-P>" : "\<S-TAB>"
smap <expr><S-TAB> pumvisible() ? "\<C-P>" : "\<S-TAB>"
imap <expr><CR> pumvisible() ? "\<C-Y>" : "\<CR>"
smap <expr><CR> pumvisible() ? "\<C-Y>" : "\<CR>"
" SirVer/ultisnips
" let g:UltiSnipsExpandTrigger="<tab>"
" let g:UltiSnipsJumpForwardTrigger="<tab>"
" let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
"let g:UltiSnipsExpandTrigger="<C-j>"
let g:UltiSnipsExpandTrigger="<C-l>"
" xolox/vim-session
let g:session_autosave = 'no'
" mattn/emmet-vim
let g:user_emmet_leader_key='<Tab>'
let g:user_emmet_settings = {'javascript.jsx' : { 'extends' : 'jsx', }, }
" w0rp/ale
let g:ale_sign_error = '●' " Less aggressive than the default '>>'
let g:ale_sign_warning = '.'
let g:ale_lint_on_enter = 0 " Less distracting when opening a new file
" skywind3000/asyncrun.vim
augroup infosec05
autocmd!
"autocmd BufWritePost *.js AsyncRun -post=checktime ./node_modules/.bin/eslint --fix %
augroup end
" kien/rainbow_parentheses.vim
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" mxw/vim-jsx
let g:jsx_ext_required = 0
" linux
let g:UltiSnipsSnippetDir= [$HOME.'/.dotfiles/ysnippets']
let g:UltiSnipsSnippetDirectories= [$HOME.'/.dotfiles/ysnippets', 'UltiSnips']
" windows
" let g:UltiSnipsSnippetDir=[$HOME.'/ysnippets']
" Plug 'prettier/vim-prettier'
let g:prettier#config#print_width = 120
" work with .editorconfig
let g:prettier#config#config_precedence = 'file-override'
let g:prettier#config#single_quote = 'true'
let g:prettier#exec_cmd_async = 1
nmap <Leader>p <Plug>(Prettier)
let g:prettier#quickfix_enabled = 0
let g:prettier#autoformat = 0
autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
" unblevable/quick-scope
let g:qs_max_chars=250
let g:qs_lazy_highlight = 1
nmap <leader>q <plug>(QuickScopeToggle)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Functional keys
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nnoremap <leader>2 :RainbowParenthesesToggle<CR>
nnoremap <leader>1 :TagbarToggle<CR>
nnoremap <leader>i :IndentLinesToggle<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Extra
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:tagbar_type_javascript = {
\ 'ctagstype': 'javascript',
\ 'kinds': [
\ 'A:arrays',
\ 'P:properties',
\ 'T:tags',
\ 'O:objects',
\ 'G:generator functions',
\ 'F:functions',
\ 'C:constructors/classes',
\ 'M:methods',
\ 'V:variables',
\ 'I:imports',
\ 'E:exports',
\ 'S:styled components'
\ ]}