|
1 | 1 | call plug#begin('~/.local/share/nvim/plugged')
|
2 |
| - "lint |
3 |
| - Plug 'w0rp/ale', { 'on': 'ALEToggle' } |
4 |
| - "complete |
| 2 | + "complete |
5 | 3 | Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
6 | 4 | "outline
|
7 | 5 | Plug 'majutsushi/tagbar'
|
@@ -86,32 +84,6 @@ map J <Plug>(expand_region_shrink)
|
86 | 84 | map <leader>n :Defx<CR>
|
87 | 85 | map <leader>m :TagbarOpenAutoClose<CR>
|
88 | 86 |
|
89 |
| -" ale-setting {{{ |
90 |
| -let g:ale_set_highlights = 0 |
91 |
| -"自定义error和warning图标 |
92 |
| -let g:ale_sign_error = '✗' |
93 |
| -let g:ale_sign_warning = '⚡' |
94 |
| -"打开文件时不进行检查 |
95 |
| -let g:ale_lint_on_enter = 0 |
96 |
| -" Set this. Airline will handle the rest. |
97 |
| -let g:airline#extensions#ale#enabled = 1 |
98 |
| - |
99 |
| -"普通模式下,sp前往上一个错误或警告,sn前往下一个错误或警告 |
100 |
| -nmap sp <Plug>(ale_previous_wrap) |
101 |
| -nmap sn <Plug>(ale_next_wrap) |
102 |
| -"<Leader>s触发/关闭语法检查 |
103 |
| -nmap <Leader>s :ALEToggle<CR> |
104 |
| -"<Leader>d查看错误或警告的详细信息 |
105 |
| -nmap <Leader>d :ALEDetail<CR> |
106 |
| -" Only run linters named in ale_linters settings. |
107 |
| -let g:ale_linters_explicit = 1 |
108 |
| -let g:ale_linters = { |
109 |
| -\ 'php': ['phpcs','phpmd'], |
110 |
| -\ 'sh': ['shellcheck'], |
111 |
| -\} |
112 |
| -let g:ale_php_phpcs_standard = 'psr2' |
113 |
| -" }}} |
114 |
| - |
115 | 87 | "----------------------------------------------
|
116 | 88 | " Language: Golang
|
117 | 89 | "----------------------------------------------
|
@@ -232,13 +204,6 @@ highlight DbgBreakptLine ctermbg=none ctermfg=none
|
232 | 204 | highlight DbgBreakptSign ctermbg=none ctermfg=10
|
233 | 205 | highlight DbgCurrentLine ctermbg=none ctermfg=none
|
234 | 206 | highlight DbgCurrentSign ctermbg=none ctermfg=red
|
235 |
| -" Vim-php-cs-fixer |
236 |
| -" If you use php-cs-fixer version 2.x |
237 |
| -let g:php_cs_fixer_rules = "@PSR2" " options: --rules (default:@PSR2) |
238 |
| -let g:php_cs_fixer_php_path = "php" " Path to PHP |
239 |
| -let g:php_cs_fixer_enable_default_mapping = 1 " Enable the mapping by default (<leader>pcd) |
240 |
| -let g:php_cs_fixer_dry_run = 0 " Call command with dry-run option |
241 |
| -let g:php_cs_fixer_verbose = 0 " Return the output of command if 1, else an inline information. |
242 | 207 | " snips
|
243 | 208 | " UltiSnips 的 tab 键与 YCM 冲突,重新设定
|
244 | 209 | let g:UltiSnipsExpandTrigger="<leader><tab>"
|
|
0 commit comments