mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
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:
parent
c992ebec46
commit
3c2d430ba0
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue