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>
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
"----------------------
"----------------------
if has_key(plugs, 'nvim-treesitter')
lua require('plugin-config/nvim-treesitter')
+
+ set foldmethod=expr
+ set foldexpr=nvim_treesitter#foldexpr()
+ set foldlevel=99
endif