-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrust-tools.lua
56 lines (55 loc) · 1.99 KB
/
rust-tools.lua
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
return {
"simrat39/rust-tools.nvim",
ft = "rust",
dependencies = {
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
"nvim-lua/plenary.nvim",
"mfussenegger/nvim-dap",
},
config = function()
require("rust-tools").setup {
server = require("lsp-zero").build_options("rust_analyzer", {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy"
},
inlayHints = {
bindingModeHints = {
enable = false,
},
chainingHints = {
enable = true,
},
closingBraceHints = {
enable = true,
minLines = 25,
},
closureReturnTypeHints = {
enable = "never",
},
lifetimeElisionHints = {
enable = "never",
useParameterNames = false,
},
maxLength = 25,
parameterHints = {
enable = true,
},
reborrowHints = {
enable = "never",
},
renderColons = true,
typeHints = {
enable = true,
hideClosureInitialization = false,
hideNamedConstructor = false,
},
},
}
}
})
}
end
}