Skip to content

Commit a0bf426

Browse files
committed
remove nouse things
1 parent 9603888 commit a0bf426

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

tools/neovim/init.vim

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
call plug#begin('~/.local/share/nvim/plugged')
2-
"lint
3-
Plug 'w0rp/ale', { 'on': 'ALEToggle' }
4-
"complete
2+
"complete
53
Plug 'neoclide/coc.nvim', {'branch': 'release'}
64
"outline
75
Plug 'majutsushi/tagbar'
@@ -86,32 +84,6 @@ map J <Plug>(expand_region_shrink)
8684
map <leader>n :Defx<CR>
8785
map <leader>m :TagbarOpenAutoClose<CR>
8886
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-
11587
"----------------------------------------------
11688
" Language: Golang
11789
"----------------------------------------------
@@ -232,13 +204,6 @@ highlight DbgBreakptLine ctermbg=none ctermfg=none
232204
highlight DbgBreakptSign ctermbg=none ctermfg=10
233205
highlight DbgCurrentLine ctermbg=none ctermfg=none
234206
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.
242207
" snips
243208
" UltiSnips 的 tab 键与 YCM 冲突,重新设定
244209
let g:UltiSnipsExpandTrigger="<leader><tab>"

0 commit comments

Comments
 (0)