mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Use allowlist instead of whitelist (the latter is not documented in current vim-lsp)
parent
c8978ee69e
commit
d6f5fb534c
@ -10,12 +10,12 @@ if executable('ccls')
|
|||||||
\ 'cmd': {server_info->['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'))},
|
\ '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' }},
|
\ 'initialization_options': {'cache': {'directory': '/tmp/ccls/cache' }},
|
||||||
\ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'],
|
\ 'allowlist': ['c', 'cpp', 'objc', 'objcpp', 'cc'],
|
||||||
\ })
|
\ })
|
||||||
endif
|
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`:
|
Next, set up key bindings by adding the following to your `~/.vimrc` or `~/.vim/vimrc`:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user