vim: LanguageClient: rust: Always use clippy
This commit is contained in:
parent
2e0c727e7d
commit
da6e04e3b8
3
home/.config/nvim/LanguageClient.json
Normal file
3
home/.config/nvim/LanguageClient.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rust.clippy_preference": "on"
|
||||||
|
}
|
|
@ -82,6 +82,8 @@ let g:LanguageClient_serverCommands = {
|
||||||
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
|
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
let g:LanguageClient_settingsPath = '~/.config/nvim/LanguageClient.json'
|
||||||
|
|
||||||
function LC_maps()
|
function LC_maps()
|
||||||
if has_key(g:LanguageClient_serverCommands, &filetype)
|
if has_key(g:LanguageClient_serverCommands, &filetype)
|
||||||
nnoremap <buffer> <silent> <F5> :call LanguageClient_contextMenu()<CR>
|
nnoremap <buffer> <silent> <F5> :call LanguageClient_contextMenu()<CR>
|
||||||
|
|
Reference in a new issue