Skip to content

Commit ae16aab

Browse files
authored
refactor(#3256): move setup/config related functionality to new module config.lua (#3262)
* refactor(#3253): move setup/config related functionality to new module config.lua * refactor(#3253): add api.config, tidy new config module * refactor(#3253): add api.config, tidy new config module * refactor(#3253): add api.config, tidy new config module * refactor(#3253): format * refactor(#3256): fix doc generator * refactor(#3256): fix doc generator * refactor(#3256): strongly type legacy config * refactor(#3256): legacy config consistent parameter naming * refactor(#3256): fix bad rebase
1 parent 87594aa commit ae16aab

File tree

14 files changed

+696
-607
lines changed

14 files changed

+696
-607
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Please add or update documentation when you make changes, see `:help dev-lua-doc
161161

162162
Help is updated for:
163163
- Default keymap at `keymap.on_attach_default`
164-
- Default config at `--- default-config-start`
164+
- Default config at `--- config-default-start`
165165

166166
## Updating And Generating
167167

doc/nvim-tree-lua.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,28 @@ get() *nvim_tree.api.commands.get()*
23852385
{opts} (`vim.api.keyset.user_command`) |command-attributes|
23862386

23872387

2388+
==============================================================================
2389+
API: config *nvim-tree-api-config*
2390+
2391+
default() *nvim_tree.api.config.default()*
2392+
Default nvim-tree config.
2393+
2394+
Return: ~
2395+
(`nvim_tree.config`) immutable deep clone
2396+
2397+
global() *nvim_tree.api.config.global()*
2398+
Global current nvim-tree config.
2399+
2400+
Return: ~
2401+
(`nvim_tree.config`) immutable deep clone
2402+
2403+
user() *nvim_tree.api.config.user()*
2404+
Reference to config passed to |nvim-tree-setup|
2405+
2406+
Return: ~
2407+
(`nvim_tree.config?`) nil when no config passed to setup
2408+
2409+
23882410
==============================================================================
23892411
API: events *nvim-tree-api-events*
23902412

0 commit comments

Comments
 (0)