extra bundles for zf_vimrc.vim
this repo holds some plugins that are useful but hard to config or has heavy dependency, typically LSPs
note: this repo requires zf_vimrc.vim, to install, follow zf_vimrc.vim's install guide
-
if you have
vim8
orneovim
, you may use this repo to setup LSP quickly:-
have
git
andcurl
installed -
have any of these package manager available:
apt-get
apt-cyg
yum
brew
-
we would automatically install complete engine according to your env in this order:
-
coc.nvim
ifnode
available- on Windows, this check is disabled by default, since the required node version is pretty high for coc.nvim, which is not so easy to install on old Windows
-
asyncomplete
if none of above available -
if you want to use specified complete engine: (see complete_engine for possible values)
let g:ZF_Plugin_complete_engine = 'coc'
-
-
use
curl zsaber.com/vim | sh
to install, this may take a long time, but required for only once -
if some external command line tools install failed, or if your env changed, you may use
:ZFModuleInstall
to manually update these tools
-
-
if you have no
vim8
orneovim
, do not waste your life on LSP, just use<c-p>
or<tab>
see also:
yeah, C/C++ is the most difficult LSP to config because there's no standard way to config it
we're trying hard to make it simple stupid, the minimal config is:
-
supply a file named
.clang_complete
orcompile_flags.txt
, which contains compile flags like-Ipath/to/header
, each one by line-
if you don't like the
.clang_complete
orcompile_flags.txt
file, you may:function! YourCppFlagsFunc() return [ \ '-DDEBUG', \ '-Ipath1', \ '-Ipath2', \ ] endfunction if !exists('g:zflsp_cpp_extraFlags') let g:zflsp_cpp_extraFlags = {} endif let g:zflsp_cpp_extraFlags['YourModule1'] = 'YourCppFlagsFunc' let g:zflsp_cpp_extraFlags['YourModule2'] = ['-DDEBUG', '-Ipath1', '-Ipath2']
-
-
additional installation
- on Windows, install
llvm
andVisualStudio
- the
VisualStudio
is required only for its builtin C++ header, for Windows, there seems no simple way to get proper C++ header without the huge IDE
- the
- on unix like systems, install
gcc-c++
orlibstdc++
- on Windows, install