Use allowlist instead of whitelist (the latter is not documented in current vim-lsp)

woky 2021-05-04 15:50:25 +02:00 committed by Fangrui Song
parent c8978ee69e
commit d6f5fb534c

@ -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`: