Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A file explorer tree for neovim written in lua

License

NotificationsYou must be signed in to change notification settings

codallos/nvim-tree.lua

 
 

Repository files navigation

CI

Automatic updates

File type icons

Git integration

Diagnostics integration: LSP and COC

(Live) filtering

Cut, copy, paste, rename, delete, create

Highly customisable



Take a look at thewiki for Showcases, Tips, Recipes and more.

Join us on matrix

Breaking Change 2023-01-30

Existing*_on_setup* mechanisms have been removed in favour ofOpen At Startup

Requirements

neovim >=0.8.0

nvim-web-devicons is optional and used to display file icons. It requires apatched font. Your terminal emulator must be configured to use that font, usually "Hack Nerd Font"

Install

Install withvim-plug:

Plug'nvim-tree/nvim-web-devicons'" optional, for file iconsPlug'nvim-tree/nvim-tree.lua'

or withpacker:

use {'nvim-tree/nvim-tree.lua',requires= {'nvim-tree/nvim-web-devicons',-- optional, for file icons  },tag='nightly'-- optional, updated every week. (see issue #1193)}

Setup

Setup 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-- disable netrw at the very start of your init.lua (strongly advised)vim.g.loaded_netrw=1vim.g.loaded_netrwPlugin=1-- set termguicolors to enable highlight groupsvim.opt.termguicolors=true-- empty setup using defaultsrequire("nvim-tree").setup()-- OR setup with some optionsrequire("nvim-tree").setup({sort_by="case_sensitive",view= {width=30,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:help nvim-tree.OPTION_NAME. Nested options can be accessed by appending., for example:help nvim-tree.view.mappings

Commands

See:help nvim-tree-commands

Basic commands:

:NvimTreeToggle Open or close the tree. Takes an optional path argument.

:NvimTreeFocus Open the tree if it is closed, and then focus on the tree.

:NvimTreeFindFile Move the cursor in the tree for the current buffer, opening folders if needed.

:NvimTreeCollapse Collapses the nvim-tree recursively.

Mappings

nvim-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

g? toggles help, showing all the mappings and their actions.

Roadmap

nvim-tree is stable and new major features will not be added. The focus is on existing user experience.

Users are encouraged to add their own custom features via the publicAPI.

Development is focused on:

  • Bug fixes
  • Performance
  • Quality of Life improvements
  • API / Events
  • Enhancements to existing features

API

nvim-tree exposes a public API. This is non breaking, with additions made as necessary.

See wikiRecipes andTips for ideas and insipration.

Please raise afeature request if the API is insufficent for your needs.Contributions are always welcome.

:help nvim-tree-api

Events

Users may subscribe to events that nvim-tree will dispatch in a variety of situations.

:help nvim-tree-events

Actions

Custom actions may be mapped which can invoke API or perform your own actions.

:help nvim-tree-mappings

Contributing

PRs are always welcome. Seewiki to get started.

Seebug andPR Please issues if you are looking for some work to get you started.

Help Wanted

Developers with the following environments:

  • Apple macOS
  • Windows
    • WSL
    • msys
    • powershell

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

SeeShowcases wiki page for examples of user's configurations with sources.

Please add your own!

About

A file explorer tree for neovim written in lua

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua99.4%
  • Shell0.6%

[8]ページ先頭

©2009-2025 Movatter.jp