summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/rust_analyzer.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/rust_analyzer.lua')
-rw-r--r--.config/nvim/lua/plugins/rust_analyzer.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/rust_analyzer.lua b/.config/nvim/lua/plugins/rust_analyzer.lua
index 87dc010..914befe 100644
--- a/.config/nvim/lua/plugins/rust_analyzer.lua
+++ b/.config/nvim/lua/plugins/rust_analyzer.lua
@@ -14,6 +14,7 @@ return {
server = {
default_settings = {
-- rust-analyzer language server configuration
+ -- https://rust-analyzer.github.io/book/configuration.html
['rust-analyzer'] = {
checkOnSave = true,
check = {
@@ -25,7 +26,24 @@ return {
autoimport = {
enable = false;
}
+ },
+ files = {
+ exclude = {
+ "build-dir/",
+ ".flatpak-builder",
+ }
}
+ --settings = {
+ -- cargo = { allFeatures = true },
+ -- imports = { group = { enable = false } },
+ -- completion = { postfix = { enable = false } },
+ -- -- https://www.reddit.com/r/rust/comments/1e978l7/comment/led7ibp/
+ -- -- checkOnSave = { command = "clippy" },
+ -- checkOnSave = { command = false },
+
+ -- diagnostics = { enable = true },
+ -- rustfmt = { enable = true },
+ --}
},
},
},