RedBug312
25208ed91d
Avoid colors.setup() being deferred
2021-02-19 18:09:59 +01:00
Cooper b. Anderson
48cd6a1ad3
Add NvimTreeEmptyFolderName to docs
2021-02-19 09:40:19 +01:00
Cooper b. Anderson
9650c0ed9d
Add empty directory highlight group
2021-02-19 09:40:19 +01:00
Cooper b. Anderson
6647f96739
Fix empty dir icons updating incorrectly
2021-02-19 09:40:19 +01:00
Cooper b. Anderson
84aa8d7ba7
Add empty dir icons to docs
2021-02-19 09:40:19 +01:00
Cooper b. Anderson
4579c6d2b9
Make empty dir icons auto update
2021-02-19 09:40:19 +01:00
Cooper b. Anderson
25b414051f
Add empty directory icons
2021-02-19 09:40:19 +01:00
Sebastian Lyng Johansen
7531c7023d
fix bug for pattern recogniti
...
on of filename
2021-02-18 23:57:06 +01:00
Sebastian Lyng Johansen
bc8fa41d80
change behaviour of rename
2021-02-18 23:57:06 +01:00
kiyan
58a5e4ab48
fix: set deleted staged git status
2021-02-16 20:30:34 +01:00
kiyan42
bb7054fe79
remove log call
2021-02-16 09:40:15 +01:00
kiyan42
42a875aa00
fix: do not run refresh if vim.v.exiting is set
2021-02-15 09:57:43 +01:00
kiyan42
19418e898e
fix: is_bufnr_valid by checking if buffer is loaded
2021-02-15 09:35:12 +01:00
dorgnarg
aab0a136ac
Give users the option to enable netrw
2021-02-15 09:28:28 +01:00
kiyan
5b428c014a
fix: check for loaded buffers before deleting
2021-02-14 17:18:59 +01:00
Sergey Bulavintsev
c59831a5d1
Add opt to don't open tree on specific filetypes
2021-02-11 21:17:15 +01:00
elianiva
b285257876
fix: escape filename before opening it
2021-01-22 09:35:29 +01:00
cloggier
91bd2b53ba
Add default close binding to readme
2021-01-20 18:45:18 +01:00
Joel D. Elkins
bfc9606aa0
Variable should be local
2021-01-20 18:44:58 +01:00
Joel D. Elkins
92da0c78a3
Remove unused variable
2021-01-20 18:44:58 +01:00
Joel D. Elkins
75e7bb8a16
table.remove takes only 2 arguments
2021-01-20 18:44:58 +01:00
Joel D. Elkins
cbcd61b053
Only do git status -u if status.showUntrackedFiles = true
...
Some git use cases, specifically where $HOME is a git worktree with
a bare git repo somewhere else, really get bogged down if you do
`git status -u`. This overcomes that issue.
2021-01-20 18:43:41 +01:00
Joel D. Elkins
32640f7689
Remove unused check_and_open_split()
2021-01-20 18:38:39 +01:00
Joel D. Elkins
35e640fb25
Honor 'hidden' setting when deciding whether to split window
2021-01-20 18:38:39 +01:00
David
bf59dd4a86
make function local to avoid conflicts :)
2021-01-17 23:28:17 +01:00
David
6b6f8f1b6b
fixes #175 | early return if internal state is invalid(does not match nvim's state
2021-01-17 23:28:17 +01:00
li
01ae59823c
add close binding
2021-01-17 23:26:45 +01:00
Joel D. Elkins
787cef2a1d
Use vim.fn instead of vim.api.nvim_eval
2021-01-15 19:35:38 +01:00
Joel D. Elkins
bacb987b77
Execute action in target window if possible
...
Change lib.open_file semantics somewhat to open files in the window from
which the tree was opened, if possible. I call this window the target.
If the buffer in the target window is modified, then execute the
desired configured split (split or vsplit) relative to the target. If
the target is unmodified, open the selected node in the target, hiding
the buffer. If the selected node is already visible in a window, don't
do any of the foregoing; instead, just jump to that window. If the
target has been closed, the preserve the original semantics.
2021-01-15 19:35:38 +01:00
Joel D. Elkins
e935ec3bb0
When re-opening the tree buffer, navigate to the target window's working dir
2021-01-15 19:31:44 +01:00
Joel D. Elkins
52a2905135
On dir_up, keep the current node selected and visible
2021-01-15 19:31:44 +01:00
Joel D. Elkins
0a4123b71f
Move dir_up functionality into lib and make '-' a default keymap for it
2021-01-15 19:31:44 +01:00
Joel D. Elkins
361e20ecfa
Add dir_up function to expose navigating up one directory
2021-01-10 16:07:02 +01:00
Zi莱卷
86944b51c0
renaming: lua-tree -> nvim-tree
2020-12-28 16:32:27 +01:00
kiyan42
05711754d9
renaming: lua-tree -> nvim-tree
2020-12-27 19:14:34 +01:00
kiyan
2e7118ca17
check buffer is valid when renaming
2020-12-23 00:02:43 +01:00
Yiqun Ding
5080c5c44c
fix file icon length
2020-12-20 18:32:11 +01:00
Vitaly Kushner
9810f8d8c9
Fix lua_tree_allow_resize variable name in docs
...
It's actually `lua_tree_width_allow_resize` in the code.
2020-12-19 14:37:51 +01:00
kiyan
bc8245c7bb
enable sign column by default to have a little padding
2020-12-16 19:20:21 +01:00
cqroot
2cd12d01f8
fix: missing local
2020-12-15 20:04:59 +01:00
cqroot
043678c7bb
feat: g:lua_tree_ignore support *.extension
2020-12-15 20:04:59 +01:00
ttys3
c84b8b4ab9
feat: auto close: avoid force user to press Enter key to exit
...
with `let g:lua_tree_auto_close = 1`, while closing the tree when it's the last window,
neovim ask the user: "Press ENTER or type command to continue"
this patch should fixup the problem
2020-12-14 22:04:31 +01:00
Simon Zeng
9aa8be639d
Add nil check for link_to
2020-12-14 22:01:24 +01:00
kiyan
0862bcc08e
allow opening symlink to folders
2020-12-13 17:13:35 +01:00
kiyan
033b465f34
add RM state and ' A' to hl groups
2020-12-13 16:52:23 +01:00
kiyan
7e6177b8ff
new file untracked is git dirty, new file unstaged is git new
2020-12-13 16:48:12 +01:00
kiyan
e7fe054ef1
back to basic functionnalities with nvimtreefindfile
2020-12-10 00:03:57 +01:00
kiyan
811dacfb98
find file sets cursor on file if tree is open
2020-12-09 22:03:39 +01:00
Rafael Bodill
2cec5892d7
Add close_node feature to README.md
2020-12-07 01:45:09 +01:00
Rafael Bodill
54403415ed
Add close_node action to close parent directory
2020-12-07 01:45:09 +01:00