vim: LanguageClient: rust: Always use clippy

This commit is contained in:
Simon Bruder 2020-06-17 16:16:00 +02:00
parent 2e0c727e7d
commit da6e04e3b8
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{
"rust.clippy_preference": "on"
}

View file

@ -82,6 +82,8 @@ let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ }
let g:LanguageClient_settingsPath = '~/.config/nvim/LanguageClient.json'
function LC_maps()
if has_key(g:LanguageClient_serverCommands, &filetype)
nnoremap <buffer> <silent> <F5> :call LanguageClient_contextMenu()<CR>