689800c5272ff1e00705a157e06b03b51369f0b3

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Improve rust-analyzer config

Diff

 1diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua
 2index 6b1618ea3864cb1ee30055e3dbb383f195cc5a2a..54b8338f76d389aef8c7b340cf72c1ce703681b4 100644
 3--- a/dot_config/nvim/lua/plugins/lsp.lua
 4+++ b/dot_config/nvim/lua/plugins/lsp.lua
 5@@ -61,10 +61,19 @@ return {
 6 					settings = {
 7 						["rust-analyzer"] = {
 8 							diagnostics = {
 9-								enable = false,
10+								enable = true,
11 							},
12 							cargo = {
13-								allFeatures = true,
14+								allFeatures = false,
15+							},
16+							imports = {
17+								granularity = {
18+									group = "module",
19+								},
20+								prefix = "self",
21+							},
22+							procMacro = {
23+								enable = true,
24 							},
25 						},
26 					},
27@@ -140,7 +149,7 @@ return {
28 		opts = {
29 			fuzzy = { implementation = "prefer_rust_with_warning" },
30 			sources = {
31-				default = { "lazydev", "lsp", "snippets", "path", "buffer" },
32+				default = { "lazydev", "lsp", "snippets", "path" },
33 				providers = {
34 					lazydev = {
35 						name = "LazyDev",