-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrust.lua
More file actions
38 lines (37 loc) · 812 Bytes
/
Copy pathrust.lua
File metadata and controls
38 lines (37 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- Rust development plugins
---
--- Author: @lararosekelley
return {
{
"mrcjkb/rustaceanvim",
version = "^6",
lazy = false,
ft = { "rust" },
init = function()
local mason_bin = vim.fn.stdpath("data") .. "/mason/bin/rust-analyzer"
vim.g.rustaceanvim = {
server = {
cmd = function()
if vim.fn.executable(mason_bin) == 1 then
return { mason_bin }
else
return { "rust-analyzer" }
end
end,
default_settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
},
},
},
},
}
end,
},
{
"saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
opts = {},
},
}