Skip to content

Commit f4bfc55

Browse files
committed
Update vimrc
Only auto-complete certain file extensions Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent ba7332a commit f4bfc55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vimrc

+4
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ if executable('clangd')
287287
\ 'allowlist': ['h', 'c', 'cpp', 'objc', 'objcpp'],
288288
\ 'blocklist': ['def'],
289289
\ })
290+
autocmd FileType c setlocal omnifunc=lsp#complete
291+
autocmd FileType cpp setlocal omnifunc=lsp#complete
292+
autocmd FileType objc setlocal omnifunc=lsp#complete
293+
autocmd FileType objcpp setlocal omnifunc=lsp#complete
290294
augroup end
291295
endif
292296

0 commit comments

Comments
 (0)