return { standalone = false, capabilities = { general = { positionEncodings = { 'utf-16' } } }, settings = { ['rust-analyzer'] = { checkOnSave = { overrideCommand = { 'cargo', 'clippy', '--message-format=json', '--', '-W', 'clippy::expect_used', '-W', 'clippy::pedantic', '-W', 'clippy::unwrap_used', }, }, }, }, on_attach = function(...) require('config.lsp').on_attach(...) bmap({ 'n', '\\Rc', 'RustLsp codeAction' }) bmap({ 'n', '\\Rm', 'RustLsp expandMacro' }) bmap({ 'n', '\\Ro', 'RustLsp openCargo' }) end, }