kiyan
f7ad4ce5f4
feat: add trailing slash on folder names
...
enable the feature through `vim.g.nvim_tree_add_trailing`
2021-03-16 21:26:03 +01:00
Levi Rizki Saputra
4c46d2b192
fix vim.g.nvim_tree_git_hl is not work ( #232 )
...
- it doest not disable git status reloading
2021-03-14 19:29:01 +01:00
Kassio Borges
784bba77c5
NvimTreeFindFile open a window in current tab ( #228 )
...
Fixes #225
2021-03-10 22:24:22 +01:00
Federico Scodelaro
31ef294d05
Patch windows ( #222 )
2021-03-09 20:12:10 +01:00
kiyan42
411e3412d1
hotfix: check that foreground is not empty string to avoid errors
2021-03-09 09:16:18 +01:00
kiyan
7e3534c2bc
fix: load Vim's highlight groups foreground as hex
2021-03-08 00:16:41 +01:00
kiyan42
58e44d29d7
chore: update documentation for tree mappings
2021-03-06 12:49:30 +01:00
Rizqi Nur Assyaufi
1984c12510
Fix: wrong dictionary format example for empty & empty_open on doc ( #216 )
2021-02-26 23:12:53 +01:00
kiyan
905afba209
chore: refacto binding initialization (inverse mapping table)
2021-02-23 00:31:47 +01:00
kiyan
491fd68d62
fix: regression on create (do not open node)
2021-02-22 21:47:51 +01:00
kiyan
0136801444
chore: rename lib folder to nvim-tree
...
Allows external access to the lua api and follow neovim plugins better
practices
2021-02-22 21:02:23 +01:00
kiyan
f070d0a32f
remove .DS_STORE file
2021-02-22 20:56:03 +01:00
kiyan
07da8a7242
feat/fix: add rename cmd, fix rename error
...
- add <C-r> binding to omit the filename on rename (option is
full_rename).
- call `silent! write!` on rename to avoid the `overwrite existing file`
error when saving the buffer.
2021-02-22 20:54:53 +01:00
kiyan
ce2420b9da
remove custom gx command in favor of netrw functionnalities and add documentation for netrw hijack
2021-02-21 12:27:31 +01:00
Cooper b. Anderson
894acce5ef
Fix error when reading restricted directory
2021-02-21 00:05:03 +01:00
RedBug312
3bd96e3caa
Fix dependency problem
...
require 'nvim-web-devicons' fails if colors.setup done in plugin/. This
may be related to loading order.
2021-02-19 18:09:59 +01:00
RedBug312
c9ed6c804b
Move NvimTreePopup highlight link
2021-02-19 18:09:59 +01:00
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