From 459493ab874dc7117b0a5da27fc190a47fa95aac Mon Sep 17 00:00:00 2001 From: Cryxtalix Date: Sat, 1 Nov 2025 03:50:30 +0800 Subject: update --- .config/nvim/lua/plugins/rust_analyzer.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.config/nvim/lua/plugins/rust_analyzer.lua') 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 }, + --} }, }, }, -- cgit