@@ -1079,32 +1079,6 @@ marks.navigate.select() *nvim-tree-api.marks.navigate.select()*
10791079 Prompts for selection of a marked node, sorted by absolute paths.
10801080 A folder will be focused, a file will be opened.
10811081
1082- ==============================================================================
1083- API: Config *nvim-tree-api.config*
1084-
1085- *nvim-tree-api.config.mappings.default_on_attach()*
1086- config.mappings.default_on_attach({bufnr} )
1087- Set all | nvim-tree-mappings-default | . Call from your | nvim_tree.Config | {on_attach}
1088-
1089- Parameters: ~
1090- • {bufnr} (number) nvim-tree buffer number passed to | nvim_tree.Config | {on_attach}
1091-
1092- *nvim-tree-api.config.mappings.get_keymap()*
1093- config.mappings.get_keymap()
1094- Retrieves all buffer local mappings for nvim-tree.
1095- These are the mappings that are applied by | nvim_tree.Config | {on_attach}, which
1096- may include default mappings.
1097-
1098- Return: ~
1099- (table) as per | nvim_buf_get_keymap() |
1100-
1101- *nvim-tree-api.config.mappings.get_keymap_default()*
1102- config.mappings.get_keymap_default()
1103- Retrieves the buffer local mappings for nvim-tree that are applied by
1104- | nvim-tree-api.config.mappings.default_on_attach() |
1105-
1106- Return: ~
1107- (table) as per | nvim_buf_get_keymap() |
11081082
11091083==============================================================================
11101084API: Commands *nvim-tree-api.commands*
@@ -1266,7 +1240,7 @@ You are encouraged to copy these to your {on_attach} function. >lua
12661240 -- END_DEFAULT_ON_ATTACH
12671241<
12681242Alternatively, you may apply these default mappings from your | nvim_tree.Config | {on_attach} via
1269- | nvim-tree- api.config.mappings.default_on_attach()| e.g. >lua
1243+ | nvim_tree. api.config.mappings.default_on_attach()| e.g. >lua
12701244
12711245 local function my_on_attach(bufnr)
12721246 local api = require("nvim-tree.api")
@@ -2865,6 +2839,34 @@ Class: Config.Log *nvim-tree-config-log*
28652839
28662840
28672841
2842+ ==============================================================================
2843+ Lua module: nvim_tree.api.config *nvim-tree-api-config*
2844+
2845+ *nvim_tree.api.config.mappings.default_on_attach()*
2846+ default_on_attach({bufnr} )
2847+ Apply all | nvim-tree-mappings-default | . Call from your | nvim_tree.Config |
2848+ {on_attach}.
2849+
2850+ Parameters: ~
2851+ • {bufnr} (`integer` ) use the `bufnr ` passed to {on_attach}
2852+
2853+ get_keymap() *nvim_tree.api.config.mappings.get_keymap()*
2854+ Retrieve all buffer local mappings for nvim-tree. These are the mappings
2855+ that are applied by | nvim_tree.Config | {on_attach}, which may include
2856+ default mappings.
2857+
2858+ Return: ~
2859+ (`vim .api.keyset.get_keymap[]` )
2860+
2861+ *nvim_tree.api.config.mappings.get_keymap_default()*
2862+ get_keymap_default()
2863+ Retrieves the buffer local mappings for nvim-tree that are applied by
2864+ | nvim_tree.api.config.mappings.default_on_attach() |
2865+
2866+ Return: ~
2867+ (`vim .api.keyset.get_keymap[]` )
2868+
2869+
28682870==============================================================================
28692871Lua module: nvim_tree.api.tree *nvim-tree-api-tree*
28702872
@@ -2922,14 +2924,14 @@ find_file({opts}) *nvim_tree.api.tree.find_file()*
29222924
29232925 Parameters: ~
29242926 • {opts} (`table?` ) optional
2925- • {buf} ? (`string |number ` ) Absolute/relative path OR | bufnr() |
2927+ • {buf} ? (`string |integer ` ) Absolute/relative path OR ` bufnr `
29262928 to find.
29272929 • {open} ? (`boolean ` , default: false) Open the tree if
29282930 necessary.
29292931 • {current_window}? (`boolean ` , default: false) Requires
29302932 {open} : open in the current window.
2931- • {winid} ? (`number ` ) Open the tree in the specified | winid | ,
2932- overrides {current_window}
2933+ • {winid} ? (`integer ` ) Open the tree in the specified
2934+ | window-ID | , overrides {current_window}
29332935 • {update_root}? (`boolean ` , default: false) Update root after
29342936 find, see | nvim_tree.Config.UpdateFocusedFile | {update_root}
29352937 • {focus} ? (`boolean ` , default: false) Focus the tree window.
@@ -2954,7 +2956,7 @@ is_tree_buf({bufnr}) *nvim_tree.api.tree.is_tree_buf()*
29542956 Checks if a buffer is an nvim-tree.
29552957
29562958 Parameters: ~
2957- • {bufnr} (`number ?` ) 0 or nil for current buffer.
2959+ • {bufnr} (`integer ?` ) 0 or nil for current buffer.
29582960
29592961 Return: ~
29602962 (`boolean ` )
@@ -2979,8 +2981,8 @@ open({opts}) *nvim_tree.api.tree.open()*
29792981 • {path} ? (`string ` ) Root directory for the tree
29802982 • {current_window}? (`boolean ` , default: false) Open the tree
29812983 in the current window
2982- • {winid} ? (`number ` ) Open the tree in the specified | winid | ,
2983- overrides {current_window}
2984+ • {winid} ? (`integer ` ) Open the tree in the specified
2985+ | window-ID | , overrides {current_window}
29842986 • {find_file}? (`boolean ` , default: false) Find the current
29852987 buffer.
29862988 • {update_root}? (`boolean ` , default: false) Update root
@@ -3005,8 +3007,8 @@ resize({opts}) *nvim_tree.api.tree.resize()*
30053007 • {width}
30063008 (`nvim_tree.Config.View.WidthSpec|nvim_tree.Config.View.Width` )
30073009 New | nvim_tree.Config.View | {width} value.
3008- • {absolute} (`number ` ) Set the width.
3009- • {relative} (`number ` ) Increase or decrease the width.
3010+ • {absolute} (`integer ` ) Set the width.
3011+ • {relative} (`integer ` ) Increase or decrease the width.
30103012
30113013search_node() *nvim_tree.api.tree.search_node()*
30123014 Open the search dialogue.
@@ -3019,8 +3021,8 @@ toggle({opts}) *nvim_tree.api.tree.toggle()*
30193021 • {path} ? (`string ` ) Root directory for the tree
30203022 • {current_window}? (`boolean ` , default: false) Open the tree
30213023 in the current window
3022- • {winid} ? (`number ` ) Open the tree in the specified | winid | ,
3023- overrides {current_window}
3024+ • {winid} ? (`integer ` ) Open the tree in the specified
3025+ | window-ID | , overrides {current_window}
30243026 • {find_file}? (`boolean ` , default: false) Find the current
30253027 buffer.
30263028 • {focus} ? (`boolean ` , default: true) Focus the tree when
@@ -3055,14 +3057,14 @@ toggle_no_buffer_filter()
30553057 Toggle | nvim_tree.Config.Filters | {no_buffer} filter.
30563058
30573059winid({opts} ) *nvim_tree.api.tree.winid()*
3058- Retrieve the winid of the open tree.
3060+ Retrieve the window of the open tree.
30593061
30603062 Parameters: ~
30613063 • {opts} (`table?` ) optional
30623064 • {tabpage} ? (`integer` ) | tab-ID | 0 or nil for current.
30633065
30643066 Return: ~
3065- (`integer?` ) | winid | , nil if tree is not visible.
3067+ (`integer?` ) | window-ID | , nil if tree is not visible.
30663068
30673069
30683070 vim:tw=78:ts=8:sw=4:sts=4:et:ft=help:norl:
0 commit comments