feat: 添加 nvim-tree 侧边文件树

- 新增 filetree.lua:nvim-tree 常驻侧边栏
- <leader>e 开关侧边文件树(VSCode 风格)
- oil.nvim 保留,用 - 键快速编辑目录
- bufferline 添加 NvimTree 偏移适配
- which-key 添加 <leader>e 分组
This commit is contained in:
2026-07-16 13:26:00 +08:00
parent 29169fe2e8
commit bb9b7915a6
3 changed files with 76 additions and 1 deletions
+7 -1
View File
@@ -43,7 +43,7 @@ return {
tab_size = 18,
diagnostics = "nvim_lsp",
diagnostics_update_in_insert = false,
-- ✅ 适配 oil.nvim:左侧文件浏览器偏移
-- ✅ 适配 oil.nvim 和 nvim-tree:左侧文件浏览器偏移
offsets = {
{
filetype = "oil",
@@ -51,6 +51,12 @@ return {
highlight = "Directory",
text_align = "left",
},
{
filetype = "NvimTree",
text = "文件树",
highlight = "Directory",
text_align = "left",
},
},
color_icons = true,
show_buffer_icons = true,