Skip to content

Commit

Permalink
feat(rust): Add rust-analyzer defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Nov 18, 2023
1 parent c9144d4 commit 465c151
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/astrocommunity/pack/rust/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
return {
{ import = "astrocommunity.pack.toml" },
{
"AstroNvim/astrolsp",
---@type AstroLSPOpts
opts = {
handlers = { clangd = false },
---@diagnostic disable: missing-fields
config = {
rust_analyzer = {
settings = {
["rust-analyser"] = {
checkOnSave = {
command = "clippy",
},
},
},
},
},
},
},
{
"vxpm/ferris.nvim",
lazy = true,
Expand Down

0 comments on commit 465c151

Please sign in to comment.