diff options
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 + }, +} |
