Skip to content

Commit 88fe257

Browse files
committed
Merge branch 'master' into 3088-gen_vimdoc-api-3231-remove-api-requires
2 parents 69ab5c7 + 869fc95 commit 88fe257

File tree

12 files changed

+115
-105
lines changed

12 files changed

+115
-105
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,21 @@ check: luals
1212
#
1313
# subtasks
1414
#
15+
# TODO #3241 ensure that decorator is checked - all meta should be valid
16+
# TODO #3088 check api
1517
luacheck:
16-
luacheck --codes --quiet lua --exclude-files "**/_meta/**"
18+
# luacheck --codes --quiet lua --exclude-files "**/_meta/api_decorator.lua"
19+
luacheck --codes --quiet lua --exclude-files "**/_meta/api*"
20+
luacheck --codes --quiet scripts
1721

18-
# --diagnosis-as-error does not function for workspace, hence we post-process the output
1922
style-check:
20-
@scripts/luals-check.sh codestyle-check
23+
scripts/luals-check.sh codestyle-check
2124

2225
style-doc:
2326
scripts/doc-comments.sh
2427

2528
luals:
26-
@scripts/luals-check.sh
29+
scripts/luals-check.sh
2730

2831
#
2932
# fixes
@@ -43,7 +46,7 @@ help-update:
4346
# --ignore-blank-lines is used as nightly has removed unnecessary blank lines that stable (0.11.5) currently inserts
4447
#
4548
help-check: help-update
46-
@scripts/lintdoc.sh
49+
scripts/lintdoc.sh
4750
git diff --ignore-blank-lines --exit-code doc/nvim-tree-lua.txt
4851

4952

doc/nvim-tree-lua.txt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ Example of function that can be passed: >lua
11121112
<
11131113

11141114
==============================================================================
1115-
Class: config *nvim-tree-config*
1115+
Config *nvim-tree-config*
11161116

11171117
*nvim_tree.config*
11181118
Arguments to pass to |nvim-tree-setup|.
@@ -1218,7 +1218,7 @@ Class: config *nvim-tree-config*
12181218

12191219

12201220
==============================================================================
1221-
Class: config.sort *nvim-tree-config-sort*
1221+
Config: sort *nvim-tree-config-sort*
12221222

12231223
*nvim_tree.config.sort*
12241224
Sort files within a directory.
@@ -1258,7 +1258,7 @@ Class: config.sort *nvim-tree-config-sort*
12581258

12591259

12601260
==============================================================================
1261-
Class: config.view *nvim-tree-config-view*
1261+
Config: view *nvim-tree-config-view*
12621262

12631263
*nvim_tree.config.view*
12641264
Configures the dimensions and appearance of the nvim-tree window.
@@ -1344,7 +1344,7 @@ Class: config.view *nvim-tree-config-view*
13441344

13451345

13461346
==============================================================================
1347-
Class: config.renderer *nvim-tree-config-renderer*
1347+
Config: renderer *nvim-tree-config-renderer*
13481348

13491349
*nvim_tree.config.renderer*
13501350
Controls the appearance of the tree.
@@ -1520,7 +1520,7 @@ Class: config.renderer *nvim-tree-config-renderer*
15201520

15211521

15221522
==============================================================================
1523-
Class: config.hijack_directories *nvim-tree-config-hijack-directories*
1523+
Config: hijack_directories *nvim-tree-config-hijack-directories*
15241524

15251525
*nvim_tree.config.hijack_directories*
15261526
Hijack directory buffers by replacing the directory buffer with the tree.
@@ -1538,7 +1538,7 @@ Class: config.hijack_directories *nvim-tree-config-hijack-directories*
15381538

15391539

15401540
==============================================================================
1541-
Class: config.update_focused_file *nvim-tree-config-update-focused-file*
1541+
Config: update_focused_file *nvim-tree-config-update-focused-file*
15421542

15431543
*nvim_tree.config.update_focused_file*
15441544
Update the focused file on |BufEnter|, uncollapsing folders recursively.
@@ -1570,7 +1570,7 @@ Class: config.update_focused_file *nvim-tree-config-update-focused-file*
15701570

15711571

15721572
==============================================================================
1573-
Class: config.system_open *nvim-tree-config-system-open*
1573+
Config: system_open *nvim-tree-config-system-open*
15741574

15751575
*nvim_tree.config.system_open*
15761576
Open files or directories via the OS.
@@ -1594,7 +1594,7 @@ Class: config.system_open *nvim-tree-config-system-open*
15941594

15951595

15961596
==============================================================================
1597-
Class: config.git *nvim-tree-config-git*
1597+
Config: git *nvim-tree-config-git*
15981598

15991599
*nvim_tree.config.git*
16001600
Git operations are run in the background thus status may not immediately
@@ -1628,7 +1628,7 @@ Class: config.git *nvim-tree-config-git*
16281628

16291629

16301630
==============================================================================
1631-
Class: config.diagnostics *nvim-tree-config-diagnostics*
1631+
Config: diagnostics *nvim-tree-config-diagnostics*
16321632

16331633
*nvim_tree.config.diagnostics*
16341634
Integrate with |lsp| or COC diagnostics.
@@ -1662,7 +1662,7 @@ Class: config.diagnostics *nvim-tree-config-diagnostics*
16621662

16631663

16641664
==============================================================================
1665-
Class: config.modified *nvim-tree-config-modified*
1665+
Config: modified *nvim-tree-config-modified*
16661666

16671667
*nvim_tree.config.modified*
16681668
Indicate which files have unsaved modification. To see modified status in
@@ -1684,7 +1684,7 @@ Class: config.modified *nvim-tree-config-modified*
16841684

16851685

16861686
==============================================================================
1687-
Class: config.filters *nvim-tree-config-filters*
1687+
Config: filters *nvim-tree-config-filters*
16881688

16891689
*nvim_tree.config.filters*
16901690
Filters may be applied to the tree to exlude the display of
@@ -1739,7 +1739,7 @@ Class: config.filters *nvim-tree-config-filters*
17391739

17401740

17411741
==============================================================================
1742-
Class: config.live_filter *nvim-tree-config-live-filter*
1742+
Config: live_filter *nvim-tree-config-live-filter*
17431743

17441744
*nvim_tree.config.live_filter*
17451745
Live filter allows you to filter the tree nodes dynamically, based on
@@ -1757,7 +1757,7 @@ Class: config.live_filter *nvim-tree-config-live-filter*
17571757

17581758

17591759
==============================================================================
1760-
Class: config.filesystem_watchers *nvim-tree-config-filesystem-watchers*
1760+
Config: filesystem_watchers *nvim-tree-config-filesystem-watchers*
17611761

17621762
*nvim_tree.config.filesystem_watchers*
17631763
Use file system watchers (libuv `uv_fs_event_t`) to monitor the filesystem
@@ -1783,7 +1783,7 @@ Class: config.filesystem_watchers *nvim-tree-config-filesystem-watchers*
17831783

17841784

17851785
==============================================================================
1786-
Class: config.actions *nvim-tree-config-actions*
1786+
Config: actions *nvim-tree-config-actions*
17871787

17881788
*nvim_tree.config.actions*
17891789

@@ -1906,7 +1906,7 @@ Class: config.actions *nvim-tree-config-actions*
19061906

19071907

19081908
==============================================================================
1909-
Class: config.trash *nvim-tree-config-trash*
1909+
Config: trash *nvim-tree-config-trash*
19101910

19111911
*nvim_tree.config.trash*
19121912
Files may be trashed via an external command that must be installed on
@@ -1921,7 +1921,7 @@ Class: config.trash *nvim-tree-config-trash*
19211921

19221922

19231923
==============================================================================
1924-
Class: config.tab *nvim-tree-config-tab*
1924+
Config: tab *nvim-tree-config-tab*
19251925

19261926
*nvim_tree.config.tab*
19271927

@@ -1942,7 +1942,7 @@ Class: config.tab *nvim-tree-config-tab*
19421942

19431943

19441944
==============================================================================
1945-
Class: config.notify *nvim-tree-config-notify*
1945+
Config: notify *nvim-tree-config-notify*
19461946

19471947
*nvim_tree.config.notify*
19481948
nvim-tree |vim.log.levels|
@@ -1961,7 +1961,7 @@ Class: config.notify *nvim-tree-config-notify*
19611961

19621962

19631963
==============================================================================
1964-
Class: config.bookmarks *nvim-tree-config-bookmarks*
1964+
Config: bookmarks *nvim-tree-config-bookmarks*
19651965

19661966
*nvim_tree.config.bookmarks*
19671967
Optionally {persist} bookmarks to a json file:
@@ -1975,7 +1975,7 @@ Class: config.bookmarks *nvim-tree-config-bookmarks*
19751975

19761976

19771977
==============================================================================
1978-
Class: config.help *nvim-tree-config-help*
1978+
Config: help *nvim-tree-config-help*
19791979

19801980
*nvim_tree.config.help*
19811981

@@ -1985,7 +1985,7 @@ Class: config.help *nvim-tree-config-help*
19851985

19861986

19871987
==============================================================================
1988-
Class: config.ui *nvim-tree-config-ui*
1988+
Config: ui *nvim-tree-config-ui*
19891989

19901990
*nvim_tree.config.ui*
19911991

@@ -2005,7 +2005,7 @@ Class: config.ui *nvim-tree-config-ui*
20052005

20062006

20072007
==============================================================================
2008-
Class: config.experimental *nvim-tree-config-experimental*
2008+
Config: experimental *nvim-tree-config-experimental*
20092009

20102010
*nvim_tree.config.experimental*
20112011
Experimental features that may become default or optional functionality.
@@ -2016,7 +2016,7 @@ Class: config.experimental *nvim-tree-config-experimental*
20162016

20172017

20182018
==============================================================================
2019-
Class: config.log *nvim-tree-config-log*
2019+
Config: log *nvim-tree-config-log*
20202020

20212021
*nvim_tree.config.log*
20222022
Log to a file `nvim-tree.log` in |stdpath()| `log`, usually
@@ -2052,7 +2052,7 @@ Class: config.log *nvim-tree-config-log*
20522052

20532053

20542054
==============================================================================
2055-
Config: default *nvim-tree-default-config*
2055+
Config: Default *nvim-tree-default-config*
20562056

20572057
Following is the default configuration, see |nvim_tree.config| for details. >lua
20582058

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ local DEFAULT_OPTS = { -- default-config-start
534534
watcher = false,
535535
},
536536
},
537-
}-- default-config-end
537+
} -- default-config-end
538538

539539
local function merge_options(conf)
540540
return vim.tbl_deep_extend("force", DEFAULT_OPTS, conf or {})

lua/nvim-tree/_meta/api/classes.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@
5353
---DirectoryLink
5454
---
5555
---@class nvim_tree.api.DirectoryLinkNode: nvim_tree.api.DirectoryNode, nvim_tree.api.LinkNode
56-

lua/nvim-tree/_meta/config/experimental.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ error("Cannot require a meta file")
1414
--Buffers opened by nvim-tree will use with relative paths instead of absolute.
1515
--(default: false)
1616
--@field relative_path? boolean
17-

lua/nvim-tree/_meta/config/filesystem_watchers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ error("Cannot require a meta file")
77
---
88
---With this feature, the tree will be partially updated on specific directory changes, resulting in better performance.
99
---
10-
---Watchers may be disabled for absolute directory paths via {ignore_dirs}.
10+
---Watchers may be disabled for absolute directory paths via {ignore_dirs}.
1111
--- - A list of [vim.regex] to match a path, backslash escaped e.g. `"my-proj/\\.build$"` OR
1212
--- - A function that is passed an absolute path and returns `true` to disable
1313
---This may be useful when a path is not in `.gitignore` or git integration is disabled.

lua/nvim-tree/_meta/config/filters.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ error("Cannot require a meta file")
5757
---@field custom? string[]|(fun(absolute_path: string): boolean)
5858
---
5959
---(default: `{}`)
60-
---@field exclude? string[]
60+
---@field exclude? string[]

lua/nvim-tree/api-impl.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ local UserDecorator = require("nvim-tree.renderer.decorator.user")
1616

1717
-- hydrates meta api definitions with implementations
1818
return function(api)
19-
2019
---Print error when setup not called.
2120
---@param fn fun(...): any
2221
---@return fun(...): any

scripts/gen_vimdoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DIR_WORK="/tmp/nvim-tree-gen_vimdoc"
1919
DIR_NVIM_SRC_DEF="/tmp/src/neovim-stable"
2020

2121
if [ ! -f "${DIR_NVT}/scripts/gen_vimdoc.sh" ]; then
22-
echo "Must be run from nvim-tree root"
22+
echo "Must be run from nvim-tree root" 1>&2
2323
exit 1
2424
fi
2525

0 commit comments

Comments
 (0)