Commit Graph

40 Commits

Author SHA1 Message Date
Kiyan
07e92cd59b fix: revert relative path (#524) 2021-07-19 23:54:40 +02:00
kiyan
0a13676f30 fix toggle command find file 2021-07-10 11:53:30 +02:00
kiyan
870590fb38 fix toggle command 2021-07-10 11:49:37 +02:00
kiyan
44678adc1e fix: do not open nvim tree on neogit or gv.vim tabs 2021-07-10 11:12:42 +02:00
Kassio Borges
07dd10663a Add NvimTreeResize to resize the NvimTree window (#497) 2021-07-10 10:52:20 +02:00
kiyan
102c4c2332 fix(path relative): open file relative by matching tab path 2021-07-10 10:52:14 +02:00
YIQUN
db9e70fde5 open file with relative path when possible (#487) 2021-07-06 20:46:10 +02:00
kiyan
a41f04c7e0 feat(on_leave): add closing tab when it's last window in tabpage 2021-06-28 20:00:03 +02:00
Luke Kershaw
a06f949607 feat: Help UI for keybindings (#470) 2021-06-28 19:38:05 +02:00
kiyan
714dee57e5 fix: do not load cwd on each init call to avoid double rendering at startup when doing vim DIR 2021-06-07 20:18:19 +02:00
kiyan
3196205131 chore: switch cd to lcd and update root on dirchanged 2021-06-07 20:09:48 +02:00
kiyan
f56ac7884c fix: leave the cursor moving when going on the cwd 2021-06-05 10:53:04 +02:00
kiyan
f5931bd96b remove useless check 2021-06-04 08:28:22 +02:00
kiyan
747bce0c66 fix: wait for win opening before running place_cursor_on_node 2021-06-04 08:15:45 +02:00
Kiyan
6dca42d09d feat: hijack cursor (#428) 2021-06-02 19:28:27 +02:00
Sindre T. Strøm
aa026ab87c Revert "feat: reset old window when leaving the tree" (#421) 2021-05-31 22:46:54 +02:00
kiyan
be184bd94e feat: reset old window when leaving the tree 2021-05-28 09:13:37 +02:00
Zi莱卷
d6ab59fd5a feat: Support copy name and path (#385) 2021-05-21 08:32:48 +02:00
kiyan
825cf570bf fix: open on tabpage when tree is already open only 2021-05-17 22:32:36 +02:00
Kiyan
783870cda9 fix: handle new tabs properly (#313) 2021-04-18 11:11:56 +02:00
kiyan42
75cb2232f2 fix: reset highlight using old lib.Tree.bufnr 2021-04-17 21:35:27 +02:00
kiyan42
d065927322 hotfix forgot to switch win open to view in on_leave call 2021-04-14 09:21:11 +02:00
Kiyan
ff814676d5 chore: rewrite buffer/window handling into view file (#287) 2021-04-13 23:54:01 +02:00
Kiyan
81269a6eba chore: remove async to avoid unecessary complexity (#277) 2021-04-08 22:36:17 +02:00
Carlos Afonso
de93da78a9 Feat/add advanced navigation (#257) 2021-04-03 00:38:28 +02:00
Sindre T. Strøm
709d6b968b feat: Option for grouping empty directories (#247) 2021-03-26 19:24:03 +01:00
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
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
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
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
25208ed91d Avoid colors.setup() being deferred 2021-02-19 18:09:59 +01:00
dorgnarg
aab0a136ac Give users the option to enable netrw 2021-02-15 09:28:28 +01:00
Sergey Bulavintsev
c59831a5d1 Add opt to don't open tree on specific filetypes 2021-02-11 21:17:15 +01:00
Joel D. Elkins
92da0c78a3 Remove unused variable 2021-01-20 18:44:58 +01:00
li
01ae59823c add close binding 2021-01-17 23:26:45 +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
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
kiyan42
05711754d9 renaming: lua-tree -> nvim-tree 2020-12-27 19:14:34 +01:00