Skip to content

Commit

Permalink
fix(rust): fix clippy config, add --no-deps arg (#978)
Browse files Browse the repository at this point in the history
prevent rustaceanvim from enableing it on it's own
  • Loading branch information
Ryex authored May 20, 2024
1 parent e8ee25f commit b092e34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/astrocommunity/pack/rust/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ return {
["rust-analyzer"] = {
check = {
command = "clippy",
extraArgs = {
"--no-deps",
},
},
assist = {
importEnforceGranularity = true,
Expand Down Expand Up @@ -102,7 +105,7 @@ return {
end,
}
local final_server = require("astrocore").extend_tbl(astrolsp_opts, server)
return { server = final_server, dap = { adapter = adapter } }
return { server = final_server, dap = { adapter = adapter }, tools = { enable_clippy = false } }
end,
config = function(_, opts) vim.g.rustaceanvim = require("astrocore").extend_tbl(opts, vim.g.rustaceanvim) end,
},
Expand Down

0 comments on commit b092e34

Please sign in to comment.