Skip to content

Commit 981a43a

Browse files
authored
docs: update README for 3.0 (#1057)
closes #1033
1 parent d73859f commit 981a43a

File tree

2 files changed

+43
-9
lines changed

2 files changed

+43
-9
lines changed

CONTRIBUTING.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ optional scope for this project would usually be the source, i.e.
3232

3333
## Branching
3434

35-
The default branch is set to the current major version to make it simple for end
36-
users visiting the repo. Pull Requests, however, should go to the `main`
35+
The default branch is set to `main` and all Pull Requests should target this
3736
branch. After a short testing period, it will be merged to the current release
3837
branch.
3938

@@ -48,11 +47,16 @@ All new features should be documented in the commit they were added in. The
4847
current strategy is to maintain:
4948

5049
- Config Options: added to [defaults](lua/neo-tree/defaults.lua) and described
51-
in comments
50+
in comments. This is the bare minimum documentation for an option.
5251
- The README contains "back of the box" high level overview of features. It is
5352
meant for people trying to decide if they want to install this plugin or not.
5453
It should include references to the help file for more information:
5554
`:h neo-tree-setup`
55+
- Whether something should be mentioned in the README or just in the help file
56+
is a completely subjective judement call that is made on a case by case basis
57+
based on how many people are likely to be interested in that information.
5658
- The vim help file [doc/neo-tree.txt](doc/neo-tree.txt) is the definitive
5759
reference and should contain all information needed to configure and use the
5860
plugin.
61+
- OUR DOCUMENTATION IS NOT GOOD ENOUGH! Consider the current level of documentation
62+
the bare minumum and not the ideal. More documentation would be greatly appreciated.

README.md

+36-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ will be a new branch that you can opt into, when it is a good time for you.
1515

1616
See [What is a Breaking Change?](#what-is-a-breaking-change) for details.
1717

18-
See [Changelog 2.0](https://github.com/nvim-neo-tree/neo-tree.nvim/wiki/Changelog#20)
19-
for breaking changes and deprecations in 2.0.
18+
See [Changelog 3.0](https://github.com/nvim-neo-tree/neo-tree.nvim/wiki/Changelog#30)
19+
for breaking changes and deprecations in 3.0.
2020

2121

2222
### User Experience GOOD :slightly_smiling_face: :thumbsup:
@@ -43,11 +43,24 @@ so we can fix it.
4343

4444
## Minimal Quickstart
4545

46+
#### Minimal Example for Lazy:
47+
```lua
48+
{
49+
"nvim-neo-tree/neo-tree.nvim",
50+
branch = "v3.x",
51+
requires = {
52+
"nvim-lua/plenary.nvim",
53+
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
54+
"MunifTanjim/nui.nvim",
55+
}
56+
}
57+
```
58+
4659
#### Minimal Example for Packer:
4760
```lua
4861
use {
4962
"nvim-neo-tree/neo-tree.nvim",
50-
branch = "v2.x",
63+
branch = "v3.x",
5164
requires = {
5265
"nvim-lua/plenary.nvim",
5366
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
@@ -71,7 +84,7 @@ Press `?` in the Neo-tree window to view the list of mappings.
7184
```lua
7285
use {
7386
"nvim-neo-tree/neo-tree.nvim",
74-
branch = "v2.x",
87+
branch = "v3.x",
7588
requires = {
7689
"nvim-lua/plenary.nvim",
7790
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
@@ -109,8 +122,6 @@ use {
109122
{text = "", texthl = "DiagnosticSignInfo"})
110123
vim.fn.sign_define("DiagnosticSignHint",
111124
{text = "󰌵", texthl = "DiagnosticSignHint"})
112-
-- NOTE: this is changed from v1.x, which used the old style of highlight groups
113-
-- in the form "LspDiagnosticsSignWarning"
114125

115126
require("neo-tree").setup({
116127
close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
@@ -587,7 +598,10 @@ add `"document_symbols"` to `config.sources` and open it with the command
587598
:Neotree document_symbols
588599
```
589600

601+
### External Sources
590602

603+
There are more sources available as extensions that are managed outside of this repository. See the
604+
[wiki](https://github.com/nvim-neo-tree/neo-tree.nvim/wiki/External-Sources) for me information.
591605

592606
### Source Selector
593607
![Neo-tree source selector](https://github.com/nvim-neo-tree/resources/raw/main/images/Neo-tree-source-selector.png)
@@ -710,6 +724,22 @@ Contributions are encouraged. Please see [CONTRIBUTING](CONTRIBUTING.md) for mor
710724

711725
## Acknowledgements
712726

727+
### Maintainers
728+
729+
First and foremost, this project is a community endeavor and would not survive without the constant stream of features
730+
and bug fixes that comes from that community. There have been many valued contributors, but a few have stepped up to
731+
become maintainers that generously donate their time to guide the project, help out others, and manage the issues. The
732+
current list of maintainers are:
733+
734+
(in alphabetical order)
735+
736+
- @cseickel
737+
- @miversen33
738+
- @nhat-vo
739+
- @pysan3
740+
741+
### Other Projects
742+
713743
This project relies upon these two excellent libraries:
714744
- [nui.nvim](https://github.com/MunifTanjim/nui.nvim) for all UI components, including the tree!
715745
- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) for backend utilities, such as scanning the filesystem.

0 commit comments

Comments
 (0)