Xinqi Bao's Git
projects
/
dotfiles.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
e634a87
)
init.vim minor update
author
Xinqi Bao <
[email protected]
>
Sat, 8 Jan 2022 04:50:08 +0000
(12:50 +0800)
committer
Xinqi Bao <
[email protected]
>
Sat, 8 Jan 2022 04:50:08 +0000
(12:50 +0800)
.config/nvim/init.vim
patch
|
blob
|
history
diff --git
a/.config/nvim/init.vim
b/.config/nvim/init.vim
index
ecc9745
..
92379df
100644
(file)
--- a/
.config/nvim/init.vim
+++ b/
.config/nvim/init.vim
@@
-182,6
+182,9
@@
if has_key(plugs, "coc.nvim")
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
+ " Apply AutoFix to problem on the current line.
+ nmap <leader>qf <Plug>(coc-fix-current)
+
" clangd
nmap <leader>gh :CocCommand clangd.switchSourceHeader<CR>
" clangd
nmap <leader>gh :CocCommand clangd.switchSourceHeader<CR>
@@
-196,6
+199,18
@@
if has_key(plugs, "coc.nvim")
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
+
+ let g:coc_default_semantic_highlight_groups = 1
+ let g:coc_global_extensions = [
+ \'coc-marketplace',
+ \'coc-highlight',
+ \'coc-clangd',
+ \'coc-jedi',
+ \'coc-vimlsp',
+ \'coc-sh',
+ \'coc-json',
+ \'coc-yaml'
+ \]
endif
"----------------------
endif
"----------------------