-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
82 lines (68 loc) · 4.71 KB
/
init.lua
File metadata and controls
82 lines (68 loc) · 4.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-- ===========================================================================
-- Neovim 主配置文件 (init.lua)
-- 负责加载 LuaJIT 模块、基础配置、快捷键以及所有插件
-- ===========================================================================
vim.loader.enable() -- 启用 LuaJIT 加载器,优化启动速度
-- 1. 加载核心配置
require("config.base") -- 加载基础 Vim/Neovim 选项配置
require("config.keymaps") -- 加载全局键盘快捷键映射
require("config.autocmds") -- 纯内置自动命令
require("utils.floatty") -- 浮窗控制
-- 2. GUI 客户端特定配置
if vim.g.neovide then
require("config.neovide") -- 仅在 Neovide 环境下加载 GUI 特有配置
end
-- stylua: ignore start
-- 3. 插件管理:使用 vim.pack.add 定义所有插件列表,方便统一管理,都放一起。
vim.g.pack_ft_markdown = {
"https://github.com/kaymmm/bullets.nvim", -- Markdown 列表增强
"https://github.com/MeanderingProgrammer/render-markdown.nvim", -- Markdown 实时渲染/预览
}
vim.pack.add({
-- 准备研究后续加入
-- "https://github.com/debugloop/telescope-undo.nvim",
-- Telescope FZF 性能优化(需要在安装的目录下手动运行 make)
{ src = "https://github.com/nvim-telescope/telescope-fzf-native.nvim", build = "make" },
{ src = "https://github.com/nvim-telescope/telescope.nvim"},
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
"https://github.com/nvim-mini/mini.nvim", -- mini.nvim(具体配置见mini.lua)
-- A. 核心依赖 & 基础工具 (Core Dependencies & Utilities)
"https://github.com/nvim-lua/plenary.nvim", -- Lua 基础工具库,许多插件依赖(6个月没更新)
"https://github.com/kkharji/sqlite.lua", -- SQLite 数据库支持 (如 Neoclip 依赖)
"https://github.com/MunifTanjim/nui.nvim", -- 强大的 Neovim UI 组件库
-- B. UI / 外观 / 状态栏 (UI / Appearance / Statusline)
"https://github.com/catppuccin/nvim", -- 主题色
"https://github.com/folke/which-key.nvim", -- 快捷键提示系统
-- "https://github.com/nvim-lualine/lualine.nvim", -- 状态行 (Statusline)
"https://github.com/folke/which-key.nvim", -- 快捷键提示系统
-- "https://github.com/Bekaboo/dropbar.nvim", -- 文件路径/上下文导航栏
"https://github.com/rcarriga/nvim-notify", -- 通知系统
-- D. 编辑器增强与生产力 (Editing Enhancements & Productivity)
"https://github.com/SUSTech-data/wildfire.nvim", -- 支持按回车键范围选择
"https://github.com/nvim-treesitter/nvim-treesitter-context", -- Treesitter 上下文显示
"https://github.com/shellRaining/hlchunk.nvim", -- 高亮当前代码块/缩进块
"https://github.com/mbbill/undotree", -- 可视化撤销树
"https://github.com/AckslD/nvim-neoclip.lua", -- 剪贴板历史管理器
-- 'https://github.com/folke/trouble.nvim', -- 统一的诊断/Quickfix/LSP 列表
-- E. 文件管理与工作区 (File Management & Workspaces)
"https://github.com/pteroctopus/faster.nvim", -- 大型文件优化处理
-- F. Git / 终端 / LLM 工具 (Git / Terminal / LLM Tools)
"https://github.com/olimorris/codecompanion.nvim", -- LLM/AI 代码伴侣工具
-- G. 调试 (DAP) 及其依赖
"https://github.com/williamboman/mason.nvim", -- 插件/LSP/DAP 安装器
-- "https://github.com/nvim-neotest/nvim-nio", -- 异步 I/O 依赖
-- 'https://github.com/mfussenegger/nvim-dap', -- Debug Adapter Protocol 核心
-- 'https://github.com/rcarriga/nvim-dap-ui', -- DAP 调试 UI 界面
-- 'https://github.com/theHamsta/nvim-dap-virtual-text', -- DAP 调试虚拟文本显示
-- 'https://github.com/jay-babu/mason-nvim-dap.nvim', -- Mason DAP 自动安装
-- 'https://github.com/mfussenegger/nvim-dap-python', -- Python 调试配置
-- 'https://github.com/nvim-telescope/telescope-dap.nvim', -- Telescope DAP 扩展
})
-- stylua: ignore end
require("plugins.editor") -- 编辑器增强功能
require("plugins.ui") -- 用户界面和外观
require("plugins.mini") -- 配置 mini家族的 核心插件
require("config.deferred") -- 依赖插件的延迟加载
require("component.theme") -- 主题
require("component.statusline").setup()
require("component.tabline").setup()