From 5bca2006cc55d8bd57cf4f7a8d1f15aabb4cb931 Mon Sep 17 00:00:00 2001 From: Uy Ha <8091245+uyha@users.noreply.github.com> Date: Mon, 30 Aug 2021 18:53:14 +0200 Subject: [PATCH] Make time between each tree refresh configurable (#599) --- README.md | 8 ++++++++ lua/nvim-tree/lib.lua | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49676a8a..39c33b8f 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ let g:nvim_tree_icon_padding = ' ' "one space by default, used for rendering the let g:nvim_tree_symlink_arrow = ' >> ' " defaults to ' ➛ '. used as a separator between symlinks' source and target. let g:nvim_tree_update_cwd = 1 "0 by default, will update the tree cwd when changing nvim's directory (DirChanged event). Behaves strangely with autochdir set. let g:nvim_tree_respect_buf_cwd = 1 "0 by default, will change cwd of nvim-tree to that of new buffer's when opening nvim-tree. +let g:nvim_tree_refresh_wait = 500 "1000 by default, control how often the tree can be refreshed, 1000 means the tree can be refresh once per 1000ms. let g:nvim_tree_window_picker_exclude = { \ 'filetype': [ \ 'packer', @@ -161,17 +162,21 @@ highlight NvimTreeFolderIcon guibg=blue ### Setup You can disable default mappings with + ```vim " let g:nvim_tree_disable_keybindings=1 ``` + But you won't be able to map any keys from the setup with nvim_tree_bindings. Use with caution. You can use only your mappings with + ```vim let g:nvim_tree_disable_default_keybindings = 1 ``` You can define your own keymaps with this syntax: + ```vim lua <