From d6f5fb534c587e1bfb397a3a1282c70113c8a305 Mon Sep 17 00:00:00 2001 From: woky Date: Tue, 4 May 2021 15:50:25 +0200 Subject: [PATCH] Use allowlist instead of whitelist (the latter is not documented in current vim-lsp) --- vim-lsp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim-lsp.md b/vim-lsp.md index ec0fe80..1b47d7c 100644 --- a/vim-lsp.md +++ b/vim-lsp.md @@ -10,12 +10,12 @@ if executable('ccls') \ 'cmd': {server_info->['ccls']}, \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, \ 'initialization_options': {'cache': {'directory': '/tmp/ccls/cache' }}, - \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], + \ 'allowlist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], \ }) endif ``` -Note you may want to `whitelist` of C/C++/... file suffixes to your taste. +Note you may want modify `allowlist` of C/C++/... file suffixes to your taste. Next, set up key bindings by adding the following to your `~/.vimrc` or `~/.vim/vimrc`: