kickstart.nvim/lua/kickstart/plugins/neo-tree.lua

30 lines
983 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Neo-tree is a Neovim plugin to browse the file system
-- Neo-Tree 是一个浏览文件系统的 Neovim 插件
-- https://github.com/nvim-neo-tree/neo-tree.nvim
-- leader [T]oggle [F]ileTree : 开关文件树
-- 文件树内部 `?` 查看帮助
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim', -- 一个 Neovim 的 Lua 工具库NeoTree 依赖它提供一些实用函数。
'nvim-tree/nvim-web-devicons', -- 为文件和文件夹提供图标,虽然不是必需的,但推荐安装以增强界面。
'MunifTanjim/nui.nvim', -- 一个用于构建用户界面的 Lua 库NeoTree 用它来创建其界面组件。
},
cmd = 'Neotree', -- 将在执行 :Neotree 命令时加载
keys = {
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
},
opts = {
filesystem = {
window = {
mappings = {
['\\'] = 'close_window',
},
},
},
},
}