- 分层架构:config/{options,keymaps,lazy} + plugins/
- 保留:blink.cmp, oil.nvim, runner.lua, cmake-tools, diffview, tokyonight
- 新增 UI:bufferline, lualine, noice, nvim-notify, dashboard, dressing
- 新增编辑器:Comment, nvim-surround, vim-illuminate, toggleterm, flash
- 新增视觉:indent-blankline, nvim-ufo, rainbow-delimiters
- 新增 Git:lazygit 集成
- 新增 DAP:persistent-breakpoints, nvim-dap-virtual-text
- 修复:which-key 启用, rustaceanvim 填充, 键位冲突解决
- 语法检查:22/22 文件全部通过 luajit -b
24 lines
664 B
Lua
24 lines
664 B
Lua
-- =============================================================================
|
|
-- rustaceanvim.lua — Rust 开发增强
|
|
-- =============================================================================
|
|
-- 【修复】原文件是空 return {},现在填上完整配置。
|
|
-- 【修改】🔧 填充 rustaceanvim 配置,与你的 lspconfig rust_analyzer 配合。
|
|
|
|
return {
|
|
"mrcjkb/rustaceanvim",
|
|
ft = { "rust" },
|
|
dependencies = {
|
|
"neovim/nvim-lspconfig",
|
|
"nvim-lua/plenary.nvim",
|
|
"mfussenegger/nvim-dap",
|
|
},
|
|
opts = {
|
|
server = {
|
|
standalone = true,
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
vim.g.rustaceanvim = opts
|
|
end,
|
|
}
|