⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
7eb61f5
doc(#2934): POC to use gen_vimdoc.lua for decorator meta
alex-courtis Jan 4, 2026
cbfffc6
doc(#2934): use injected gen_vimdoc.lua from nvim source, move decora…
alex-courtis Jan 4, 2026
a5a823b
doc(#2934): tidy and harden scripts
alex-courtis Jan 4, 2026
1960d3a
doc(#2934): add nvim_tree.Config meta classes, add nvim_tree.api. met…
alex-courtis Jan 5, 2026
02c3ecf
doc(#2934): add nvim_tree.Config to help
alex-courtis Jan 5, 2026
d14385f
doc(#2934): add nvim_tree.api classes to help
alex-courtis Jan 5, 2026
d733127
doc(#2934): tidy and correct nvim_tree.Config.UI and nvim_tree.Config…
alex-courtis Jan 5, 2026
4221d19
doc(#2934): tidy and correct nvim_tree.Config.HijackDirectories, form…
alex-courtis Jan 5, 2026
d14677d
doc(#2934): tidy and nvim_tree.Config top level
alex-courtis Jan 5, 2026
86bd8a6
doc(#2934): tidy and format nvim_tree.Config.LiveFilter, Modified, Ta…
alex-courtis Jan 5, 2026
a836f79
doc(#2934): tidy and format nvim_tree.Config.FilesystemWatchers, Log
alex-courtis Jan 5, 2026
b1adfad
doc(#2934): split nvim_tree.Config into files, Sort and HijackDirecto…
alex-courtis Jan 6, 2026
22c1f1b
doc(#2934): more generic gen_vimdoc_config module config
alex-courtis Jan 6, 2026
54dddc3
doc(#2934): tidy Config.HijackDirectories and Actions, move them into…
alex-courtis Jan 6, 2026
8f1f516
doc(#2934): tidy Config.Modified, move into place
alex-courtis Jan 6, 2026
b59183a
doc(#2934): tidy Config.LiveFilter, move into place
alex-courtis Jan 6, 2026
628e9bf
doc(#2934): tidy Config.FilesystemWatchers, move into place
alex-courtis Jan 6, 2026
a6142a2
doc(#2934): tidy Config.Trash, move into place
alex-courtis Jan 6, 2026
d1fd1d4
doc(#2934): tidy Config.Tab, move into place
alex-courtis Jan 6, 2026
b449929
doc(#2934): tidy Config.UI, move into place
alex-courtis Jan 6, 2026
d64aa2d
doc(#2934): tidy Config.Log, move into place
alex-courtis Jan 6, 2026
1aad39e
doc(#2934): tidy Config.Notify, move into place
alex-courtis Jan 6, 2026
1feb014
doc(#2934): tidy Config.SystemOpen, move into place
alex-courtis Jan 6, 2026
e690484
doc(#2934): tidy Config.Help, move into place
alex-courtis Jan 6, 2026
4727f9c
doc(#2934): tidy Config.Help, move into place
alex-courtis Jan 6, 2026
2384e2b
doc(#2934): tidy Config.Help, move into place
alex-courtis Jan 6, 2026
dbdf846
doc(#2934): tidy Config.Diagnostics, move into place
alex-courtis Jan 6, 2026
6faff06
doc(#2934): remove api/decorator as they are out of scope, revert api…
alex-courtis Jan 6, 2026
2554582
doc(#2934): tidy Config.Filters, move into place
alex-courtis Jan 6, 2026
3fea7f4
doc(#2934): tidy Config.FilesystemWatchers, move into place
alex-courtis Jan 6, 2026
1988d5e
doc(#2934): tidy Config.FilesystemWatchers, Git, move into place
alex-courtis Jan 9, 2026
2329508
doc(#2934): tidy Config.UpdateFocusedFile, move into place
alex-courtis Jan 9, 2026
c961bd4
doc(#2934): tidy Config.Sort, move into place
alex-courtis Jan 10, 2026
745fc54
doc(#2934): tidy Config.View, move into place
alex-courtis Jan 10, 2026
6f2744f
doc(#2934): tidy Config.View, move into place
alex-courtis Jan 10, 2026
fd92856
docs(#2934): type DEFAULT_OPTS, use bracketed references to keep lual…
alex-courtis Jan 10, 2026
453b31f
docs(#2934): tidy, inline some classes
alex-courtis Jan 10, 2026
1b21a08
docs(#2934): tidy Config.Renderer
alex-courtis Jan 10, 2026
93e3122
docs(#2934): remove problematic glyphs, tidy other glyphs
alex-courtis Jan 11, 2026
25d57bc
docs(#2934): tidy Config.Renderer, ensure functions are parenthesised…
alex-courtis Jan 11, 2026
3895114
docs(#2934): tidy Config.Renderer
alex-courtis Jan 12, 2026
53db2d0
docs(#2934): tidy Config.Renderer, move into place
alex-courtis Jan 12, 2026
795dde7
docs(#2934): tidy Config.Renderer
alex-courtis Jan 12, 2026
b60fa05
docs(#2934): tidy Config.FilesystemWatchers
alex-courtis Jan 12, 2026
f15aa33
docs(#2934): fix broken links
alex-courtis Jan 12, 2026
06fcb5e
docs(#2934): fix broken links
alex-courtis Jan 12, 2026
aa915c4
docs(#2934): fix broken links
alex-courtis Jan 12, 2026
5c133d3
docs(#2934): fix broken links
alex-courtis Jan 12, 2026
fd4c17d
docs(#2934): refer to nvim in help, not neovim, as this trips the lin…
alex-courtis Jan 12, 2026
e7ae9f0
docs(#2934): fix broken links
alex-courtis Jan 12, 2026
2fcf8a0
docs(#2934): add lintdoc.sh, fix some branding spelling
alex-courtis Jan 12, 2026
316f98b
docs(#2934): update old config links
alex-courtis Jan 12, 2026
d6e5d73
docs(#2934): remove 5. Opts, 8.2 Highlight: Overhaul, 15.1 Index: O…
alex-courtis Jan 12, 2026
2c27f24
docs(#2934): remove indices
alex-courtis Jan 13, 2026
8bfd76f
docs(#2934): add bookmarks, put long descriptions into @brief
alex-courtis Jan 13, 2026
bb53ccd
docs(#2934): move hidden display to verbatim new section
alex-courtis Jan 13, 2026
59d6946
docs(#2934): add config lsp examples, link setup
alex-courtis Jan 13, 2026
a66e30a
docs(#2934): normalise heading formatting, remove TOC
alex-courtis Jan 13, 2026
71c7ed4
docs(#2934): move all icon and highlight info into a table
alex-courtis Jan 14, 2026
531fb94
docs(#2934): move all icon and highlight info into a new section
alex-courtis Jan 14, 2026
5538e01
docs(#2934): normalise all icon and highlight
alex-courtis Jan 14, 2026
3713b69
docs(#2934): extract nvim_tree.Config field descriptions to class ove…
alex-courtis Jan 14, 2026
0a8b2ca
docs(#2934): consistent string formatting
alex-courtis Jan 14, 2026
e5f0c6f
docs(#2934): normalise all icon and highlight
alex-courtis Jan 14, 2026
e470cd1
docs(#2934): remove @briefs as they are shown above the class tag
alex-courtis Jan 14, 2026
6c0e683
docs(#2934): don't <pre> filters
alex-courtis Jan 14, 2026
20b2be1
docs(#2934): add experimental example
alex-courtis Jan 14, 2026
4b654db
docs(#2934): add gen_vimdoc.sh to CI
alex-courtis Jan 15, 2026
0a3df5e
docs(#2934): add gen_vimdoc.sh to CI
alex-courtis Jan 15, 2026
385cfb0
docs(#2934): add gen_vimdoc.sh to CI
alex-courtis Jan 15, 2026
350b590
docs(#2934): temporarily --ignore-blank-lines during help check
alex-courtis Jan 15, 2026
b39bb2b
docs(#2934): add lintdoc.sh to CI
alex-courtis Jan 15, 2026
c2b08fd
docs(#2934): add lintdoc.sh to CI
alex-courtis Jan 15, 2026
f0490bc
docs(#2934): add lintdoc.sh to CI
alex-courtis Jan 15, 2026
4be6efc
docs(#2934): move Nvim build and help-check to the end for faster tur…
alex-courtis Jan 15, 2026
56f486a
docs(#2934): use make lintdoc target directly
alex-courtis Jan 15, 2026
ada718b
docs(#2934): CONTRIBUTING.md updates for help generation and lint
alex-courtis Jan 15, 2026
cdb730d
docs(#2934): revert API opts classes changes
alex-courtis Jan 15, 2026
a0662de
Merge branch 'master' into 2934-gen_vimdoc
alex-courtis Jan 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:

env:
VIMRUNTIME: /home/runner/nvim-${{ matrix.nvim_version }}/share/nvim/runtime
NVIM_SRC: src/neovim-${{ matrix.nvim_version }}

steps:
- name: checkout
Expand All @@ -72,8 +73,15 @@ jobs:

- run: make check

- run: make help-check

- run: make style

- run: make style-doc

- name: build Nvim from source
run: |
mkdir -p src
curl -L "https://github.com/neovim/neovim/archive/refs/tags/${{ matrix.nvim_version }}.tar.gz" | tar zx --directory src
cd "${NVIM_SRC}"
make

- run: make help-check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/luals-out/
/luals/
/src/
# backup vim files
*~
28 changes: 21 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Suppressions are permitted only in the following cases:
- Backwards compatibility shims
- neovim API metadata incorrect, awaiting upstream fix
- classic class framework
- `gen_vimdoc_config.lua` help generator as it requires neovim source

# Backwards Compatibility

Expand All @@ -120,19 +121,32 @@ else
end
```

# Adding New Actions
# Documentation

To add a new action, add a file in `actions/name-of-the-action.lua`. You should export a `setup` function if some configuration is needed.
## Config And Mappings

Once you did, you should run `make help-update`
When adding to or changing:
1. `DEFAULT_OPTS`
2. `Config` classes
3. `on_attach` default mappings

# Documentation
You must generate help documentation. This requires neovim stable sources. You will be promted with instructions on fetching and referencing the source.

## Opts
```sh
make help-update
```

When adding new options, you should declare the defaults in the main `nvim-tree.lua` file.
This will:
1. Update config defaults in `*nvim-tree-setup*`
2. Regenerate from `*nvim-tree-config*` to the end of the file, see `gen_vimdoc.sh`
3. Update default mappings in `*nvim-tree-mappings-default*` and `*nvim-tree-quickstart-help*`

Commit your changes then run:
```sh
make help-check
```

Documentation for options should also be added to `nvim-tree-opts` in `doc/nvim-tree-lua.txt`
This will re-run `help-update` and check that there are no diffs. It will also lint the documentation, see `lintdoc.sh`

## API

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ style-fix:
#
help-update:
scripts/help-update.sh
scripts/gen_vimdoc.sh

#
# CI
# --ignore-blank-lines is used as nightly has removed unnecessary blank lines that stable (0.11.5) currently inserts
#
help-check: help-update
git diff --exit-code doc/nvim-tree-lua.txt
git diff --ignore-blank-lines --exit-code doc/nvim-tree-lua.txt
@scripts/lintdoc.sh


.PHONY: all lint style check luacheck style-check style-doc luals style-fix help-update help-check
Expand Down
Loading
Loading