You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Updating And Generating](#updating-and-generating)
24
+
*[Checking And Linting](#checking-and-linting)
24
25
-[Windows](#windows)
25
26
-[Pull Request](#pull-request)
26
27
*[Subject](#subject)
@@ -60,7 +61,7 @@ make lint
60
61
## style
61
62
62
63
1. Runs lua language server `codestyle-check` only, using `.luarc.json` settings
63
-
1. Runs `scripts/doc-comments.sh` to validate annotated documentation
64
+
1. Runs `scripts/doc-comments.sh` to normalise annotated documentation
64
65
65
66
```sh
66
67
make style
@@ -86,11 +87,11 @@ Assumes `$VIMRUNTIME` is `/usr/share/nvim/runtime`. Adjust as necessary e.g.
86
87
VIMRUNTIME="/my/path/to/runtime" make check
87
88
```
88
89
89
-
If `lua-language-server` is not available or `--check` doesn't function (e.g. Arch Linux 3.9.1-1) you can manually install it as per `ci.yml` e.g.
90
+
If `lua-language-server` is not available or `--check` doesn't function (e.g. Arch Linux 3.9.1-1) you can manually install it as per `ci.yml`using its current `luals_version`e.g.
90
91
91
92
```sh
92
93
mkdir luals
93
-
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/3.9.1/lua-language-server-3.9.1-linux-x64.tar.gz"| tar zx --directory luals
94
+
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/3.15.0/lua-language-server-3.15.0-linux-x64.tar.gz"| tar zx --directory luals
94
95
95
96
PATH="luals/bin:${PATH}" make check
96
97
```
@@ -119,36 +120,62 @@ else
119
120
end
120
121
```
121
122
122
-
# Documentation
123
+
# :helpDocumentation
123
124
124
-
## Config And Mappings
125
+
Please update or add to `doc/nvim-tree-lua.txt` as needed.
125
126
126
-
When adding to or changing:
127
-
1. Default config
128
-
2.`config` classes
129
-
3.`on_attach` default mappings
127
+
## Generated Content
130
128
131
-
You must generate help documentation. This requires neovim stable sources. You will be promted with instructions on fetching and referencing the source.
129
+
`doc/nvim-tree-lua.txt` content starting at `*nvim-tree-config*` will be replaced with generated content. Do not manually edit that content.
130
+
131
+
### API and Config
132
+
133
+
Help is generated for:
134
+
-`nvim_tree.config` classes from `lua/nvim-tree/_meta/config/`
135
+
-`nvim_tree.api` functions from `lua/nvim-tree/_meta/api/`
136
+
137
+
Please add or update documentation when you make changes, see `:help dev-lua-doc` for docstring format.
138
+
139
+
`scripts/vimdoc_config.lua` contains the manifest of help sources.
140
+
141
+
### Config And Mappings
142
+
143
+
Help is updated for:
144
+
- Default keymap at `keymap.on_attach_default`
145
+
- Default config at `--- default-config-start`
146
+
147
+
## Updating And Generating
148
+
149
+
Nvim sources are required. You will be prompted with instructions on fetching and using the sources.
150
+
151
+
See comments at the start of each script for complete details.
132
152
133
153
```sh
134
154
make help-update
135
155
```
136
156
137
-
This will:
138
-
1. Update config defaults in `*nvim-tree-setup*`
139
-
2. Regenerate from `*nvim-tree-config*` to the end of the file, see `gen_vimdoc.sh`
140
-
3. Update default mappings in `*nvim-tree-mappings-default*` and `*nvim-tree-quickstart-help*`
0 commit comments