|
@@ -1,27 +1,5 @@
|
|
|
-" TextEdit might fail if hidden is not set.
|
|
|
-set hidden
|
|
|
-
|
|
|
-" Some servers have issues with backup files, see #649.
|
|
|
-set nobackup
|
|
|
-set nowritebackup
|
|
|
-
|
|
|
-" Give more space for displaying messages.
|
|
|
-set cmdheight=2
|
|
|
-
|
|
|
-" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
|
|
-" delays and poor user experience.
|
|
|
-set updatetime=300
|
|
|
-
|
|
|
-" Don't pass messages to |ins-completion-menu|.
|
|
|
-set shortmess+=c
|
|
|
-
|
|
|
-" Always show the signcolumn, otherwise it would shift the text each time
|
|
|
-" diagnostics appear/become resolved.
|
|
|
-set signcolumn=yes
|
|
|
|
|
|
" 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>" :
|
|
|
\ <SID>check_back_space() ? "\<TAB>" :
|
|
@@ -137,3 +115,26 @@ nnoremap <silent> <space>j :<C-u>CocNext<CR>
|
|
|
nnoremap <silent> <space>k :<C-u>CocPrev<CR>
|
|
|
" Resume latest coc list.
|
|
|
nnoremap <silent> <space>p :<C-u>CocListResume<CR>
|
|
|
+
|
|
|
+" Explorer
|
|
|
+let g:coc_explorer_global_presets = {
|
|
|
+\ 'floating': {
|
|
|
+\ 'position': 'floating',
|
|
|
+\ },
|
|
|
+\ 'floatingLeftside': {
|
|
|
+\ 'position': 'floating',
|
|
|
+\ 'floating-position': 'left-center',
|
|
|
+\ 'floating-width': 50,
|
|
|
+\ },
|
|
|
+\ 'floatingRightside': {
|
|
|
+\ 'position': 'floating',
|
|
|
+\ 'floating-position': 'left-center',
|
|
|
+\ 'floating-width': 50,
|
|
|
+\ },
|
|
|
+\ 'simplify': {
|
|
|
+\ 'file.child.template': '[selection | clip | 1] [indent][icon | 1] [filename omitCenter 1]'
|
|
|
+\ }
|
|
|
+\ }
|
|
|
+nmap <space>e :CocCommand explorer<CR>
|
|
|
+nmap <space>f :CocCommand explorer --preset floating<CR>
|
|
|
+autocmd BufEnter * if (winnr("$") == 1 && &filetype == 'coc-explorer') | q | endif
|