diff options
| author | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
|---|---|---|
| committer | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
| commit | 1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 (patch) | |
| tree | 6842a96b396ada7003ec7ff7f3262a516be150b9 /.config/nvim_pack/lua/plugins/rustaceanvim.lua | |
| parent | 3a6553f64773aab5c81ee70ae0e1d57b5e448f64 (diff) | |
Update
Diffstat (limited to '.config/nvim_pack/lua/plugins/rustaceanvim.lua')
| -rw-r--r-- | .config/nvim_pack/lua/plugins/rustaceanvim.lua | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.config/nvim_pack/lua/plugins/rustaceanvim.lua b/.config/nvim_pack/lua/plugins/rustaceanvim.lua new file mode 100644 index 0000000..dee1dc1 --- /dev/null +++ b/.config/nvim_pack/lua/plugins/rustaceanvim.lua @@ -0,0 +1,53 @@ +vim.pack.add({ + { + src = 'https://github.com/mrcjkb/rustaceanvim.git', + version = 'master', + lazy = false, -- This plugin is already lazy + }, +}) + +vim.g.rustaceanvim = { + -- Plugin configuration + tools = { + }, + -- LSP configuration + server = { + default_settings = { + -- rust-analyzer language server configuration + -- https://rust-analyzer.github.io/book/configuration.html + ['rust-analyzer'] = { + checkOnSave = true, + check = { + enable = true, + command = "clippy", + features = "all", + }, + completion = { + 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 }, + --} + }, + }, + }, + -- DAP configuration + dap = { + }, +} |
