File tree 5 files changed +18
-4
lines changed
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -935,7 +935,7 @@ function! s:prepare(...)
935
935
call s: new_window ()
936
936
endif
937
937
938
- nnoremap <silent> <buffer> q :if b:plug_preview==1 <bar> pc <bar> endif <bar> bd <cr>
938
+ nnoremap <silent> <buffer> q :call <SID> close_pane() <cr>
939
939
if a: 0 == 0
940
940
call s: finish_bindings ()
941
941
endif
@@ -957,6 +957,15 @@ function! s:prepare(...)
957
957
endif
958
958
endfunction
959
959
960
+ function ! s: close_pane ()
961
+ if b: plug_preview == 1
962
+ pc
963
+ let b: plug_preview = -1
964
+ else
965
+ bd
966
+ endif
967
+ endfunction
968
+
960
969
function ! s: assign_name ()
961
970
" Assign buffer name
962
971
let prefix = ' [Plugins]'
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ au FileType go nnoremap <C-X> :call GoRefWindow()<CR>
3
3
let mapleader = " \\ "
4
4
5
5
let g: go_doc_popup_window = 1
6
- let g: go_auto_type_info = 1
6
+ " let g:go_auto_type_info = 1
7
7
let g: go_updatetime = 200
8
8
9
9
au FileType go nmap <leader> d <Plug> (go-doc)
10
10
au FileType go nmap <leader> f <Plug> (go-def-vertical)
11
11
au FileType go nmap <leader> c <Plug> (go-callstack)
12
12
au FileType go nmap <leader> p <Plug> (go-pointsto)
13
+ au FileType go nmap <leader> i :GoInfo<CR>
13
14
14
15
let g: go_info_mode= ' gopls'
15
16
let g: go_def_mode= ' gopls'
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ inoremap <C-T> <C-R>=strftime("%F %T")<CR>
8
8
" alt + left
9
9
map <Esc> [1;3D :echo yes
10
10
11
- nnoremap <silent> < Esc>f :let @+=expand('%:p') <CR>
11
+ nmap < Esc>e oif err != nil { <CR><Tab> return <CR> } <CR><Esc >
12
12
13
13
" YCM 函数 preview 窗口,及关闭
14
14
nnoremap <silent> <Esc> h :YcmCompleter GetDoc<CR>
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ syn keyword ngxDirective auth_request_set
86
86
syn keyword ngxDirective autoindex
87
87
syn keyword ngxDirective autoindex_exact_size
88
88
syn keyword ngxDirective autoindex_localtime
89
+ syn keyword ngxDirective brotli
90
+ syn keyword ngxDirective brotli_comp_level
91
+ syn keyword ngxDirective brotli_static
92
+ syn keyword ngxDirective brotli_types
89
93
syn keyword ngxDirective charset
90
94
syn keyword ngxDirective charset_types
91
95
syn keyword ngxDirective chunked_transfer_encoding
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ let g:ycm_show_diagnostics_ui = 0
27
27
28
28
let g: XtermColorTableDefaultOpen = ' vsplit'
29
29
30
- let g: EasyMotion_leader_key = ' [ '
30
+ let g: EasyMotion_leader_key = " ' "
31
31
let g: EditorConfig_exec_path = ' /usr/bin/editorconfig'
32
32
let g: jsx_ext_required = 0
33
33
" let g:syntastic_javascript_checkers = ['eslint']
You can’t perform that action at this time.
0 commit comments