clippy by default
This commit is contained in:
parent
e7f7ad4ca8
commit
10a01d0503
|
@ -5,8 +5,8 @@ local M = {}
|
|||
local highlights = require "custom.highlights"
|
||||
|
||||
M.ui = {
|
||||
theme = "github_light",
|
||||
theme_toggle = { "kanagawa", "github_light" },
|
||||
theme = "oceanic-next",
|
||||
theme_toggle = { "oceanic-next", "oceanic-light" },
|
||||
|
||||
hl_override = highlights.override,
|
||||
hl_add = highlights.add,
|
||||
|
|
|
@ -10,7 +10,7 @@ local servers = {
|
|||
"tsserver",
|
||||
"clangd",
|
||||
"pyright",
|
||||
"rust_analyzer", -- rustaceanvim wants to do that, but the builtin thing has better integration!
|
||||
-- "rust_analyzer", -- rustaceanvim wants to do that, but the builtin thing has better integration!
|
||||
"bashls",
|
||||
"cmake",
|
||||
}
|
||||
|
@ -21,3 +21,28 @@ for _, lsp in ipairs(servers) do
|
|||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
lspconfig.rust_analyzer.setup {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
check = {
|
||||
command = "clippy",
|
||||
},
|
||||
imports = {
|
||||
granularity = {
|
||||
group = "module",
|
||||
},
|
||||
prefix = "self",
|
||||
},
|
||||
cargo = {
|
||||
buildScripts = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
procMacro = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue