-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.vimrc
213 lines (158 loc) · 5.7 KB
/
.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
syntax on
filetype plugin on
syntax enable
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
let g:NERDTreeDirArrows=0
set number
set relativenumber
set modifiable
set incsearch
set hlsearch
let $BASH_ENV = "~/.bash_aliases"
let g:ycm_path_to_python_interpreter="/usr/bin/python"
" fold Config
set foldmethod=syntax "syntax highlighting items specify folds
set foldcolumn=1 "defines 1 col at window left, to indicate folding
let javaScript_fold=1 "activate folding by JS syntax
set foldlevelstart=99 "start file with all folds opened
set nowrap
setglobal fileencoding=UTF-8
let python_highlight_all=1
let g:rehash256 = 1
set t_Co=256
autocmd vimenter * ++nested colorscheme gruvbox
autocmd vimenter * NERDTree
set list lcs=tab:\|\
let g:airline_solarized_bg='molokai'
call plug#begin('~/.vim/plugged')
Plug 'elzr/vim-json'
Plug 'scrooloose/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'neoclide/coc-snippets'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'yaegassy/coc-tailwindcss3', {'do': 'yarn install --frozen-lockfile'}
Plug 'steelsojka/headwind.nvim'
Plug 'terryma/vim-multiple-cursors'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'vim-scripts/matchit.zip'
Plug 'jiangmiao/auto-pairs'
Plug 'kien/ctrlp.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'thaerkh/vim-workspace'
Plug 'arcticicestudio/nord-vim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'SirVer/ultisnips'
Plug 'Yggdroot/indentLine'
Plug 'tomlion/vim-solidity'
Plug 'pangloss/vim-javascript'
Plug 'jelera/vim-javascript-syntax'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'mxw/vim-jsx'
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
Plug 'ekalinin/dockerfile.vim'
Plug 'ervandew/supertab'
Plug 'mattn/emmet-vim'
Plug 'tpope/vim-fugitive'
Plug 'zivyangll/git-blame.vim'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'gabrielelana/vim-markdown'
Plug 'tpope/tpope-vim-abolish'
Plug 'editorconfig/editorconfig-vim'
Plug 'tpope/vim-dadbod'
Plug 'Galooshi/vim-import-js'
Plug 'epilande/vim-react-snippets'
Plug 'honza/vim-snippets'
Plug 'easymotion/vim-easymotion'
Plug 'chrisbra/vim-diff-enhanced'
Plug 'mattn/vim-starwars'
" Python
Plug 'jnurmine/Zenburn'
Plug 'nvie/vim-flake8'
"GO
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Theme
Plug 'morhetz/gruvbox'
call plug#end()
" Configuração dos Tabs
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" Configurações do highlight NERDTree
let g:NERDTreeFileExtensionHighlightFullName = 1
let g:NERDTreeExactMatchHighlightFullName = 1
let g:NERDTreePatternMatchHighlightFullName = 1
let g:NERDTreeShowLineNumbers = 1
let NERDTreeWinSize = 30
let NERDTreeIgnore=['node_modules', '\~$']
nmap <F4> :NERDTreeToggle<CR>
" map Easymotion
nmap <Space> <Plug>(easymotion-overwin-f)
" Configuracoes do javascript plugin
let g:javascript_plugin_jsdoc = 1
" debug ycm server
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'
" Configuracoes visuais do airline
let g:airline_theme='dark'
let g:airline_powerline_fonts = 1
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
" Mapeando a tecla de atalho do emmet
let g:user_emmet_leader_key=','
let g:mwDefaultHighlightingPalette = 'maximum'
let g:ycm_auto_trigger = 0
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_invoke_completion = '<C-Space>'
let g:SuperTabCrMapping = 0
let g:ycm_key_list_select_completion = ['<C-j>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-k>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<C-l>"
let g:UltiSnipsJumpForwardTrigger = "<C-j>"
let g:UltiSnipsJumpBackwardTrigger = "<C-k>"
let g:ale_fixers = {
\ 'javascript': ['eslint'],
\ 'typescript': ['eslint'],
\}
let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'typescript': ['eslint'],
\}
let g:ale_completion_enabled = 1
let g:syntastic_typescript_tsc_fname = ''
autocmd FileType typescript setlocal completeopt+=menu,preview
autocmd BufRead,BufNewFile *.tsx setlocal syntax=javascript.jsx
au BufRead,BufNewFile *.js set filetype=javascript
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$',
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
\ }
" Prettier config
let g:prettier#exec_cmd_path = "~/.nvm/versions/node/v10.15.3/bin/prettier-standard"
let g:vim_json_syntax_conceal = 0
let g:vim_json_syntax_conceal = 0
let g:coc_global_extensions = ['coc-tsserver']
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ CheckBackspace() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
nnoremap <Leader>s :<C-u>call gitblame#echo()<CR>
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
vmap <leader>p <Plug>(coc-format-selected)
nmap <leader>p <Plug>(coc-format-selected)