fix(rust): move lspconfig opts to correct location

lspconfig's `opts` goes in rust-tools's `opts.server`; see
https://github.com/simrat39/rust-tools.nvim#configuration
This commit is contained in:
John Bernard 2023-06-30 03:28:58 -05:00
parent c992ebec46
commit 3c2d430ba0

View file

@ -66,7 +66,7 @@ return {
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = vim.fn.has("mac") == 1 and extension_path .. "lldb/lib/liblldb.dylib"
or extension_path .. "lldb/lib/liblldb.so"
local rust_tools_opts = vim.tbl_deep_extend("force", opts, {
local rust_tools_opts = {
dap = {
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path),
},
@ -81,7 +81,7 @@ return {
]])
end,
},
server = {
server = vim.tbl_deep_extend("force", opts, {
settings = {
["rust-analyzer"] = {
cargo = {
@ -105,8 +105,8 @@ return {
},
},
},
},
})
}),
}
require("rust-tools").setup(rust_tools_opts)
return true
end,