diff options
| author | Cryxtalix <fgx8p9t@protonmail.com> | 2025-11-01 03:50:30 +0800 |
|---|---|---|
| committer | Cryxtalix <fgx8p9t@protonmail.com> | 2025-11-01 03:50:30 +0800 |
| commit | 459493ab874dc7117b0a5da27fc190a47fa95aac (patch) | |
| tree | 07d5629d44715375ac974b57481f74366f805df9 /.config/nvim/lua/plugins/rust_analyzer.lua | |
| parent | ec3591f0e79cea3a6ebaaadedfec1e9e8ac78312 (diff) | |
update
Diffstat (limited to '.config/nvim/lua/plugins/rust_analyzer.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/rust_analyzer.lua | 18 |
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 }, + --} }, }, }, |
