From e67d4c6ecdf0db44908a31f6d57d006045f53df0 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 25 Mar 2021 23:37:14 -0400 Subject: [PATCH] Added YouCompleteInstructions --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 63ce4fc..8f57a79 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,24 @@ Install the `zls-vscode` extension from [here](https://github.com/zigtools/zls-v } ``` +#### YouCompleteMe +- Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git). +- Add these lines to your vimrc: + +```vim +"ensure zig is a recognized filetype +autocmd BufNewFile,BufRead *.zig set filetype=zig + +let g:ycm_language_server = + \ [ + \{ + \ 'name': 'zls', + \ 'filetypes': [ 'zig' ], + \ 'cmdline': [ '/path/to/zls_executable' ] + \ } + \ ] +``` + #### nvim-lspconfig Requires Nvim 0.5 (HEAD)!