kiyan
fb32f35d7f
chore: allow configuring height
...
also fixes window management for top and bottom tree side
2021-10-03 14:13:10 +02:00
kiyan
8fe2b547ac
feat: add lib.collapse_all function
2021-10-03 12:58:08 +02:00
kiyan
422404d3ef
fix: lint
2021-10-02 23:14:56 +02:00
kiyan
4de55440b8
fix: returns empty string instead of default icon by default
2021-10-02 23:11:13 +02:00
kiyan
cd7be73b08
feat: completely filter out base mappings if user mappings are defined
2021-10-02 14:20:20 +02:00
kiyan
6416ea3562
chore: add old option detection in plugin/nvim-tree.lua
2021-10-02 14:05:50 +02:00
kiyan
137628acb6
chore: update_to_buf_dir allow auto_open configuration
...
also improve the documentation with doc references
2021-10-02 13:53:51 +02:00
kiyan
4cfe355035
doc: add migration in readme
2021-10-02 13:16:59 +02:00
kiyan
8dbba0c2c9
fix: avoid running the buf respect cwd on every open
2021-10-02 13:13:55 +02:00
kiyan
7c88a0f8ee
doc: add tips section to readme
2021-10-01 16:05:18 +02:00
kiyan
1fe211eda0
fix: update to buf directory implementation
2021-10-01 14:04:07 +02:00
kiyan
1b04082872
fix: do not display empty string or nil callbacks in help view
2021-09-30 13:17:05 +02:00
kiyan
c0cd3aeb65
fix: do not run refresh if tree cwd is nil
2021-09-30 13:11:05 +02:00
kiyan
acfb3c0bfb
fix: do not refresh tree to only redraw
2021-09-30 13:02:20 +02:00
kiyan
8a1377f233
fix: allow adding file from '..' into current root path
2021-09-30 12:50:28 +02:00
kiyan
9282944078
fix: add option update_to_buf_dir in setup
...
avoid hijacking the tree for use case of users using vim-dirvish
2021-09-30 12:43:20 +02:00
kiyan
e2e7720caa
fix: properly hijack netrw, don't always open on dir
...
- fix hijack netrw logic
- do not open on directory if open_on_setup is false, but do if the
window is open.
2021-09-30 12:26:55 +02:00
Vikas Raj
34af2d22ad
add icons for default and symlink ( #649 )
2021-09-30 12:09:08 +02:00
Sávio Carlos Martins Costa
12e61dd057
fix 'system_open' keypress callback ( #655 )
2021-09-29 21:16:10 +02:00
kiyan
f8b5eb0bd8
docfix: remove EOF tag
2021-09-28 00:36:10 +02:00
kiyan
1b746744ad
fix: renderer global options should be loaded on each reload
2021-09-27 19:43:23 +02:00
kiyan
67f1d36d1b
fix: highlight git new file icon with gitnew not gitdirty
2021-09-27 19:39:10 +02:00
Hanfei Shen
11659aaa65
fix: help after refactoring view ( #647 )
2021-09-27 10:04:00 +02:00
Evgeni Chasnovski
2361c1ac3a
Remove duplicate 'nvim-tree-options' tag. ( #642 )
2021-09-26 17:42:54 +02:00
kiyan
14c13903b7
fix: remove tip from readme because we can use NvimTreeResize
2021-09-26 15:00:12 +02:00
kiyan
3633e728e0
chore: refacto view setup and simplify the code
2021-09-26 14:55:49 +02:00
kiyan
591f5d436d
fix: remove buffer when replacing window
2021-09-26 12:42:13 +02:00
kiyan
506d2e792a
chore/fix: renderer module initializations
...
- put renderer into its own folder, extract the padding logic to make it
reloadable. Will allow small refactorings of the rendering logic to
make it easier to extend.
- get the icon state before each renderer reload
2021-09-26 12:29:47 +02:00
kiyan
db547dcd41
fix: defer the options check
...
the new setup refactoring might have some issues when users require the
tree before setting up global options, which might result in a startup
check not detecting those out of date options.
2021-09-26 12:14:20 +02:00
booperlv
2a5d529219
feat: option to set path destination to parent folder when cursor is on a closed folder while creating files ( #628 )
2021-09-26 12:10:19 +02:00
kiyan
1edebb7894
chore: lsp diagnostics setup
2021-09-26 11:56:44 +02:00
kiyan
0ca87178b6
fix: open view on NvimTreeFindFile
2021-09-26 11:36:57 +02:00
WayJam So
d4172928e2
fix: lsp_diagnostics switch reversed. ( #635 )
2021-09-26 11:31:26 +02:00
Kiyan
a864b80baf
chore: refacto setup part 1 ( #603 )
...
* chore: refacto setup part 1
refacto setup for code entrypoint
following options switched boolean values as options to the setup function:
- `nvim_tree_disable_netrw` -> `disable_netrw`
- `nvim_tree_hijack_netrw` -> `hijack_netrw`
- `nvim_tree_auto_open` -> `open_on_setup`
- `nvim_tree_auto_close` -> `auto_close`
- `nvim_tree_tab_open` -> `tab_open`
- `nvim-tree-update-cwd` -> `update_cwd`
- `nvim_tree_hijack_cursor` -> `hijack_cursor`
- `nvim_tree_system_open_command` -> `system_open.cmd`
- `nvim_tree_system_open_command_args` -> `system_open.args`
- `nvim_tree_follow` -> `update_focused_file.enable`
- `nvim_tree_follow_update_path` -> `update_focused_file.update_cwd`
Also added new option `update_focused_file.ignore_list` which will
ignore filepath or filetypes that matches one entry of the list when
updating the path if update_cwd is true.
* add deprecation warning
* update readme
* schedule on enter to avoid running before vim first buffer has loaded
* update docs
* correct typo
* rename tab open -> open on tab
2021-09-25 16:43:39 +02:00
Sávio Carlos
67805502d2
Only renders the git icon if the icon is not empty ( #633 )
2021-09-25 16:37:58 +02:00
frogtile
da26dfa79a
Update README.md ( #621 )
2021-09-25 16:26:12 +02:00
gegoune
d7f73b5ae9
feat(config): add notify to nvim_tree_window_picker_exclude ( #613 )
2021-09-12 14:31:31 +02:00
kiyan
4db5dfa320
fix: set nowrap in buffer instead of on each draw
2021-09-12 14:16:12 +02:00
kiyan
84126d3eb5
fix: retrieve last group node when iterating for siblings or parent
2021-09-12 14:04:41 +02:00
kiyan
71122d7984
fix: fs create on windows
2021-09-04 11:08:02 +02:00
kiyan
425f5eedc7
chore: refacto create implementation
...
allows for creating file anywhere on the system
fixes adding a file in a grouped folder
2021-09-03 21:41:28 +02:00
kiyan
27caccba18
fix: switch buffers on close
...
when closing the tree which is the last window, switches buffers
instead of getting an input with a message to close nvim or ignore.
2021-09-03 20:59:10 +02:00
kiyan
b1c447946b
fix: luacheck, buffer override erroring with mark not set
2021-08-31 21:22:30 +02:00
kiyan
d41ca62320
fix: hide the base dir update on bufenter behind an option
2021-08-30 19:03:43 +02:00
Uy Ha
5bca2006cc
Make time between each tree refresh configurable ( #599 )
2021-08-30 18:53:14 +02:00
kiyan
4cc2abe3e2
fix: reload view when bufnr is not valid
2021-08-30 18:49:33 +02:00
Krafi
802bc08485
Add augroup to view setup ( #597 )
2021-08-28 16:14:40 +02:00
kiyan
66f46b204f
fix: change base dir in find file when fname does not start with the path of the root
2021-08-28 15:07:45 +02:00
kiyan
79b968217e
fix: allow suppressing a symlink that links to a folder
2021-08-28 14:59:30 +02:00
kiyan
d705feda5a
fix: fs refresh override refresh clock
2021-08-28 14:52:10 +02:00