Commit Graph

365 Commits

Author SHA1 Message Date
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
8dbba0c2c9 fix: avoid running the buf respect cwd on every open 2021-10-02 13:13:55 +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
Vikas Raj
34af2d22ad add icons for default and symlink (#649) 2021-09-30 12:09:08 +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
kiyan
3633e728e0 chore: refacto view setup and simplify the code 2021-09-26 14:55:49 +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
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
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
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
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
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
Kiyan
3bac5633e1 feat: open tree on directory (#288) 2021-08-28 11:39:10 +02:00
kiyan
0a178d17bc fix: double entries and wrong cursor value when using mksession 2021-08-28 10:06:36 +02:00
wongxy
a89a0833da fix(coc-diagnostic): Add necessary checks (#594) 2021-08-28 08:56:24 +02:00
Ben
34e70ec69e Add 'unmerged / added by them' as a recognized git state (#588) 2021-08-28 08:54:44 +02:00
Khang
c75e4a63b7 fix: respect_buf_cwd #567 (#583) 2021-08-21 12:04:44 +02:00
wongxy
b8b70cf340 feat(diagnostics): Support coc as diagnostic source(#555) (#556) 2021-08-14 11:00:18 +02:00
kiyan
98f372eddd hotfix: refresh with sshfs 2021-08-07 20:24:48 +02:00
Matthieu ARENE
8bb58daddb Feature: add the possibility to not focus tree on TabEnter when (#545) 2021-08-07 10:02:03 +02:00
Yusuke Uchida
143505b281 Added new option, respect_buf_cwd (#533) 2021-08-07 09:59:42 +02:00
xeluxee
7bed04718e Feature: open file/folder with default system application (#539) 2021-08-02 21:08:24 +02:00
Jose Alvarez
de75d9b624 fix: guarantee order of buffer options (#529) 2021-08-02 20:58:27 +02:00
Christoph Schiessl
e741680edb add new config option g:nvim_tree_symlink_arrow (fixes #283) (#512) 2021-08-02 20:55:41 +02:00
kiyan
d3e76b81e5 resize on override 2021-07-20 00:25:44 +02:00
diogo464
07ae268354 Rename buffers on cut. (#510) 2021-07-20 00:11:31 +02:00
kiyan
cf9582962f fix: add refresh guard mecanism to avoid doing too many updates 2021-07-20 00:05:03 +02:00
Kiyan
07e92cd59b fix: revert relative path (#524) 2021-07-19 23:54:40 +02:00
kiyan
42b23246bc fix: do not redraw git on each folder when updating 2021-07-19 22:26:08 +02:00
kiyan
f178c8c8c5 run nvim tree refresh on neogit status change 2021-07-10 14:25:21 +02:00
kiyan
7fa2b82fed fix(git): add RD state 2021-07-10 11:00:25 +02:00
kiyan
b933ae856f fix(git): add DD and AU git statuses 2021-07-10 10:27:53 +02:00