summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plug-config/asyncomplete.vim
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:58:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:58:10 +0100
commit3a489c6ebaf8f080bf7e55c868059ed3802a924a (patch)
tree98e4bb3b9b3e6e33ebdc94b7f34181c215d8fd22 /.config/nvim/plug-config/asyncomplete.vim
parentNew lsp, coc sucks (diff)
downloaddotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.gz
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.bz2
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.xz
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.zst
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.zip
Perfect vim C/C++ config
Diffstat (limited to '')
-rw-r--r--.config/nvim/plug-config/asyncomplete.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/plug-config/asyncomplete.vim b/.config/nvim/plug-config/asyncomplete.vim
new file mode 100644
index 0000000..60c9cf1
--- /dev/null
+++ b/.config/nvim/plug-config/asyncomplete.vim
@@ -0,0 +1,11 @@
+autocmd User asyncomplete_setup call asyncomplete#register_source(
+ \ asyncomplete#sources#clang#get_source_options({
+ \ 'config': {
+ \ 'clang_path': '/usr/bin/cc',
+ \ 'clang_args': {
+ \ 'default': ['-I/usr/include'],
+ \ 'c': ['-std=c89', '-I/usr/include'],
+ \ 'cpp': ['-std=c++98', '-I/usr/include']
+ \ }
+ \ }
+ \ }))