diff --git a/nvim/lua/psoxizsh/lsp/preset.lua b/nvim/lua/psoxizsh/lsp/preset.lua index 634adef..64b5d9c 100644 --- a/nvim/lua/psoxizsh/lsp/preset.lua +++ b/nvim/lua/psoxizsh/lsp/preset.lua @@ -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)