diff options
| author | Cryxtalix <fgx8p9t@protonmail.com> | 2025-08-21 00:28:46 +0800 |
|---|---|---|
| committer | Cryxtalix <fgx8p9t@protonmail.com> | 2025-08-21 00:28:46 +0800 |
| commit | 2ba374291cb1b21218022863a7640af91966f05b (patch) | |
| tree | 203fe81e49b86616364f1463619de1a67a071df6 /.config/nvim/lua/plugins/rust_analyzer.lua | |
| parent | a9a10c297dfabac070dac123557d4496e4a35a6a (diff) | |
Update
Diffstat (limited to '.config/nvim/lua/plugins/rust_analyzer.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/rust_analyzer.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/rust_analyzer.lua b/.config/nvim/lua/plugins/rust_analyzer.lua new file mode 100644 index 0000000..87dc010 --- /dev/null +++ b/.config/nvim/lua/plugins/rust_analyzer.lua @@ -0,0 +1,38 @@ +-- https://github.com/mrcjkb/rustaceanvim + +return { + { + 'mrcjkb/rustaceanvim', + version = '^6', -- Recommended + lazy = false, -- This plugin is already lazy + config = function () + vim.g.rustaceanvim = { + -- Plugin configuration + tools = { + }, + -- LSP configuration + server = { + default_settings = { + -- rust-analyzer language server configuration + ['rust-analyzer'] = { + checkOnSave = true, + check = { + enable = true, + command = "clippy", + features = "all", + }, + completion = { + autoimport = { + enable = false; + } + } + }, + }, + }, + -- DAP configuration + dap = { + }, + } + end + }, +} |
