summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/asyncomplete.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin/asyncomplete.lua')
-rw-r--r--.config/nvim/after/plugin/asyncomplete.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/asyncomplete.lua b/.config/nvim/after/plugin/asyncomplete.lua
new file mode 100644
index 0000000..da28c37
--- /dev/null
+++ b/.config/nvim/after/plugin/asyncomplete.lua
@@ -0,0 +1,13 @@
+vim.cmd [[
+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']
+ \ }
+ \ }
+ \ }))
+]]