rust lsp config
This commit is contained in:
parent
249679f5cb
commit
f65eb9af33
@ -117,15 +117,23 @@ require("lspconfig").gopls.setup(config({
|
|||||||
-- who even uses this?
|
-- who even uses this?
|
||||||
require("lspconfig").rust_analyzer.setup(config({
|
require("lspconfig").rust_analyzer.setup(config({
|
||||||
-- cmd = { "rustup", "run", "rust-analyzer" },
|
-- cmd = { "rustup", "run", "rust-analyzer" },
|
||||||
--[[
|
cmd = { "rust-analyzer" },
|
||||||
settings = {
|
[[
|
||||||
rust = {
|
settings = {
|
||||||
unstable_features = true,
|
rust = {
|
||||||
build_on_save = false,
|
unstable_features = true,
|
||||||
all_features = true,
|
build_on_save = false,
|
||||||
},
|
all_features = true,
|
||||||
}
|
},
|
||||||
--]]
|
["rust-analyzer"] = {
|
||||||
|
diagnostics = {
|
||||||
|
enable = true,
|
||||||
|
disabled = {"unresolved-proc-macro"},
|
||||||
|
enableExperimental = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]]
|
||||||
}))
|
}))
|
||||||
|
|
||||||
--require("lspconfig").sumneko_lua.setup(config({
|
--require("lspconfig").sumneko_lua.setup(config({
|
||||||
|
Loading…
Reference in New Issue
Block a user