Skip to content

Commit 929ee20

Browse files
committedFeb 22, 2022
2 parents fda158e + 107f043 commit 929ee20

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
 

‎.vim/coc-settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"intelephense.licenceKey": ""
3+
}

‎.vimrc

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ call plug#begin('~/.vim/plug-bundles')
22

33
" ====================== COC =========================
44
Plug 'neoclide/coc.nvim', {'branch': 'release'}
5-
let g:coc_global_extensions = ['coc-html', 'coc-phpls', 'coc-css', 'coc-sql', 'coc-json', 'coc-yaml', 'coc-marketplace', 'coc-tsserver', 'coc-tabnine']
5+
let g:coc_global_extensions = ['coc-html', 'coc-phpls', 'coc-css', 'coc-tsserver']
66

77
function! s:show_documentation()
88
if (index(['vim','help'], &filetype) >= 0)
@@ -18,6 +18,12 @@ set signcolumn=yes
1818
" Use K to show documentation in preview window
1919
nnoremap <silent> K :call <SID>show_documentation()<CR>
2020
21+
" To make <CR> auto-select the first completion item and notify coc.nvim to format on enter
22+
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
23+
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
24+
25+
nmap <c-]> <Plug>(coc-declaration)
26+
2127
" Highlight symbol under cursor on CursorHold
2228
autocmd CursorHold * silent call CocActionAsync('highlight')
2329

@@ -120,7 +126,7 @@ Plug 'morhetz/gruvbox'
120126
call plug#end()
121127

122128
set nocompatible " choose no compatibility with legacy vi
123-
set hidden " if hidden is not set, TextEdit might fail.
129+
" set hidden " if hidden is not set, TextEdit might fail.
124130
set cmdheight=2 " Better display for messages
125131
set updatetime=300 " You will have bad experience for diagnostic
126132
" messages when it's default 4000.
@@ -169,8 +175,10 @@ set nocursorline
169175

170176
syntax sync minlines=256
171177
set synmaxcol=3000
178+
172179
autocmd FileType html syntax sync fromstart
173180
autocmd FileType xml syntax sync fromstart
181+
autocmd FileType tpl syntax sync fromstart
174182

175183
"" Pretty wrap indent
176184
if exists("&breakindent")

0 commit comments

Comments
 (0)
Please sign in to comment.