nvim-tree.lua/lua/nvim-tree
David Aguilera 99d713644d
feat(renderer): add renderer.root_folder_label (#1746)
* Add new renderer setting `add_root_updir` to fix #1743.

* Fix default value in docs.

* Remove proposed “add_root_updir” and rename “root_folder_modifier” to “root_folder_label”. Also, “root_folder_label” can be also a function now.

* chore: warn users about breaking change

* fix(#1743): use silent migration of root_folder_modifier

* fix(#1743): add example, document previous renderer.root_folder_modifier

* Add check to validate return type of “root_folder_label” is string.

* Change “root_folder_label” default value to “:~:s?$?/..?”.

* Add missing keyword “local” to local variable “label”.

Co-authored-by: David Aguilera <david.aguilera@neliosoftware.com>
Co-authored-by: gegoune <dev@clog.rocks>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2022-11-26 14:02:05 +11:00
..
actions fix(paste): allow pasting into empty root directory 2022-11-16 13:41:35 +01:00
explorer fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index (#1732) 2022-11-12 14:38:33 +11:00
git fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index (#1732) 2022-11-12 14:38:33 +11:00
iterators feat(bookmarks): add bookmark feature (#1412) 2022-07-11 10:00:12 +02:00
marks feat(notify): add notify.threshold (#1693) 2022-11-01 10:24:40 +11:00
renderer feat(renderer): add renderer.root_folder_label (#1746) 2022-11-26 14:02:05 +11:00
api.lua feat(api): add api.tree.get_nodes 2022-11-19 15:54:16 +11:00
colors.lua fix: replace vim.* "requires" with explicit calls to vim functions (#1701) 2022-11-06 10:37:33 +11:00
config.lua fix(keypress): use <cmd> instead of : to avoid triggering CmdLineEnter 2022-07-14 09:33:19 +02:00
core.lua chore(watchers): refactor events and make debouncer safe 2022-07-17 08:50:24 +02:00
diagnostics.lua feat(diagnostics): add diagnostics.severity (#1755) 2022-11-21 09:09:09 +11:00
events.lua feat(notify): add notify.threshold (#1693) 2022-11-01 10:24:40 +11:00
keymap.lua fix: inverted diagnostic navigation keymaps 2022-08-20 14:40:09 +10:00
legacy.lua feat(renderer): add renderer.root_folder_label (#1746) 2022-11-26 14:02:05 +11:00
lib.lua feat(api): add api.tree.get_nodes 2022-11-19 15:54:16 +11:00
live-filter.lua fix: replace vim.* "requires" with explicit calls to vim functions (#1701) 2022-11-06 10:37:33 +11:00
log.lua fix(notify): log file notice info->debug 2022-11-20 12:26:59 +11:00
notify.lua fix(notify): remove unused varargs, log file notice debug->info 2022-11-19 14:34:39 +11:00
utils.lua feat(tabs): add tab.sync options (#1698) 2022-11-19 13:57:45 +11:00
view.lua feat(tabs): add tab.sync options (#1698) 2022-11-19 13:57:45 +11:00
watcher.lua fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index (#1732) 2022-11-12 14:38:33 +11:00