clippy by default

This commit is contained in:
Christoph J. Scherr 2024-02-16 15:53:23 +01:00
parent e7f7ad4ca8
commit 10a01d0503
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
3 changed files with 761 additions and 729 deletions

View File

@ -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,

View File

@ -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