Fix LSPConfig
This commit is contained in:
parent
cf744465b3
commit
f36dae495e
1 changed files with 23 additions and 2 deletions
|
@ -6,8 +6,29 @@
|
||||||
(let [(lspconfig? lspconfig) (pcall require :lspconfig)
|
(let [(lspconfig? lspconfig) (pcall require :lspconfig)
|
||||||
(mason? mason) (pcall require :mason)
|
(mason? mason) (pcall require :mason)
|
||||||
(mason-lsp? mason-lsp) (pcall require :mason-lspconfig)]
|
(mason-lsp? mason-lsp) (pcall require :mason-lspconfig)]
|
||||||
(when ok?
|
(when mason-lsp?
|
||||||
(mason.setup)
|
(mason.setup)
|
||||||
(mason-lsp.setup)
|
(mason-lsp.setup)
|
||||||
(lspconfig.rust_analyzer.setup {})
|
(lspconfig.rust_analyzer.setup {
|
||||||
|
:cmd ["rustup" "run" "stable" "rust-analyzer"]
|
||||||
|
:settings {:rust-analyzer {
|
||||||
|
:cargo {
|
||||||
|
:buildScripts {
|
||||||
|
:enable true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
:procMacro {
|
||||||
|
:enable true
|
||||||
|
}
|
||||||
|
:checkOnSave {
|
||||||
|
:command "clippy"
|
||||||
|
}
|
||||||
|
:inlayHints {
|
||||||
|
:bindingModeHints {
|
||||||
|
:enable true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
(lspconfig.yamlls.setup {})))
|
(lspconfig.yamlls.setup {})))
|
||||||
|
|
Loading…
Add table
Reference in a new issue