在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kyazdani42/nvim-tree.lua开源软件地址(OpenSource Url):https://github.com/kyazdani42/nvim-tree.lua开源编程语言(OpenSource Language):Lua 99.4%开源软件介绍(OpenSource Introduction):A File Explorer For Neovim Written In LuaAutomatic updates File type icons Git integration Diagnostics integration: LSP and COC (Live) filtering Cut, copy, paste, rename, delete, create Highly customisable Requirementsnvim-web-devicons is optional and used to display file icons. It requires a patched font. InstallInstall with vim-plug: Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
Plug 'kyazdani42/nvim-tree.lua' or with packer: use {
'kyazdani42/nvim-tree.lua',
requires = {
'kyazdani42/nvim-web-devicons', -- optional, for file icons
},
tag = 'nightly' -- optional, updated every week. (see issue #1193)
} SetupSetup should be run in a lua file or in a lua heredoc :help lua-heredoc if using in a vim file. -- examples for your init.lua
-- empty setup using defaults
require("nvim-tree").setup()
-- OR setup with some options
require("nvim-tree").setup({
sort_by = "case_sensitive",
view = {
adaptive_size = true,
mappings = {
list = {
{ key = "u", action = "dir_up" },
},
},
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
}) For complete list of available configuration options see :help nvim-tree-setup Each option is documented in CommandsBasic commands:
Apinvim-tree exposes a public api; see :help nvim-tree-api. This is a stable non breaking api. Mappingsnvim-tree comes with number of mappings; for default mappings please see :help nvim-tree-default-mappings, for way of configuring mappings see :help nvim-tree-mappings
Tips & tricks
TroubleshootingDiagnostic LoggingYou may enable diagnostic logging to Performance IssuesIf you are experiencing performance issues with nvim-tree.lua, you can enable profiling in the logs. It is advisable to enable git logging at the same time, as that can be a source of performance problems. log = {
enable = true,
truncate = true,
types = {
git = true,
profile = true,
},
}, Please attach Performance Tips:
ContributingPRs are always welcome. See CONTRIBUTING.md Help WantedDevelopers with the following environments:
Help triaging, diagnosing and fixing issues specific to those environments is needed, as the nvim-tree developers do not have access to or expertise in these environments. Let us know you're interested by commenting on issues and raising PRs. Screenshots |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论