nvim: fix lsp.preset.Rust opts handling

Passed structure was incorrect
This commit is contained in:
Paul Stemmet 2024-09-08 19:26:10 +00:00
parent ac705ce937
commit e0e3d72e8e
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ M.Python = core.preset('pyright', 'lazyvim.plugins.extras.lang.python', core.lsp
M.Rust = core.preset('rust-analyzer', 'lazyvim.plugins.extras.lang.rust', function(server, opts)
return {
'mrcjkb/rustaceanvim',
opts = { default_settings = core.make_server(server, opts.settings) }
opts = {
server = { default_settings = { [server] = opts.settings } }
}
}
end)