feat: 添加 nvim-tree 侧边文件树
- 新增 filetree.lua:nvim-tree 常驻侧边栏 - <leader>e 开关侧边文件树(VSCode 风格) - oil.nvim 保留,用 - 键快速编辑目录 - bufferline 添加 NvimTree 偏移适配 - which-key 添加 <leader>e 分组
This commit is contained in:
+7
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user