Skip to content

Commit 7b6fe91

Browse files
committed
lesssilent
1 parent c267aa9 commit 7b6fe91

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.vim/coc-settings.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
2-
"languageserver": {
3-
"ccls": {
4-
"command": "ccls",
5-
"filetypes": ["c", "cpp", "cuda"],
6-
"rootPatterns": [".git/", "build/", ".ccls"],
7-
"initializationOptions": {
8-
"compilationDatabaseDirectory": "build",
9-
"client": {
10-
"snippetSupport": true
11-
},
12-
"cache": {
13-
"directory": "/tmp/ccls"
14-
},
15-
"highlight": {
16-
"lsRanges": true
17-
}
18-
}
2+
"suggest.noselect": true,
3+
"languageserver": {
4+
"ccls": {
5+
"command": "ccls",
6+
"filetypes": ["c", "cpp", "cuda"],
7+
"rootPatterns": [".tasks", ".git/", "build/"],
8+
"initializationOptions": {
9+
"compilationDatabaseDirectory": "build",
10+
"client": {
11+
"snippetSupport": true
12+
},
13+
"cache": {
14+
"directory": "/tmp/ccls"
15+
},
16+
"highlight": {
17+
"lsRanges": true
18+
}
19+
}
1920
}
2021
}
2122
}

.vim/init.vim

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@
250250
" ,i - fuzzy find string under cursor in current file (may visual)
251251
" ,a - fuzzy find string under cursor in project directory (may visual)
252252
" ,. - recall last fuzzy find window
253-
" ,, - alias for ,b (find buffer names)
254253
"
255254
" <C-j> - select next fuzzy candidate (in fuzzy find window)
256255
" <C-k> - select previous fuzzy candidate (in fuzzy find window)
@@ -683,7 +682,7 @@ let g:Lf_PreviewCode = 1
683682
"let g:Lf_PreviewResult = {'Function': 0, 'BufTag': 0 }
684683

685684
let g:Lf_ShortcutF = ''
686-
noremap ,, :Leaderf! buffer<CR>
685+
let g:Lf_ShortcutB = ''
687686
noremap ,k :Leaderf rg<CR>
688687
noremap ,o :Leaderf file<CR>
689688
noremap ,b :Leaderf! buffer<CR>
@@ -759,16 +758,16 @@ endfunction
759758

760759
" Use <c-space> to trigger completion.
761760
if has('nvim')
762-
inoremap <silent><expr> <c-space> coc#pum#visible() ? coc#_select_confirm() : coc#refresh()
761+
inoremap <silent><expr> <c-space> coc#pum#visible() ? coc#pum#confirm() : coc#refresh()
763762
else
764-
inoremap <silent><expr> <c-@> coc#pum#visible() ? coc#_select_confirm() : coc#refresh()
763+
inoremap <silent><expr> <c-@> coc#pum#visible() ? coc#pum#confirm() : coc#refresh()
765764
endif
766765

767766
" Make <CR> auto-select the first completion item and notify coc.nvim to
768767
" format on enter, <cr> could be remapped by other vim plugin
769-
"inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm()
768+
"inoremap <silent><expr> <cr> coc#pum#visible() ? coc#pum#confirm()
770769
"\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
771-
"inoremap <silent><expr> <space> coc#pum#visible() ? (<SID>check_back_space() ? "\<space>" : coc#_select_confirm()) : "\<space>"
770+
"inoremap <silent><expr> <space> coc#pum#visible() ? (<SID>check_back_space() ? "\<space>" : coc#pum#confirm()) : "\<space>"
772771

773772
" Use `[g` and `]g` to navigate diagnostics
774773
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.

0 commit comments

Comments
 (0)