Commit Graph

1094 Commits

Author SHA1 Message Date
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
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
kiyan
3445d3fefa fix: only hijack current window if tree should open at start 2021-08-28 13:59:05 +02:00
Kiyan
3bac5633e1 feat: open tree on directory (#288) 2021-08-28 11:39:10 +02:00
kiyan
dc630d199a fix: do not auto open if bufname is and buf has content 2021-08-28 11:33:15 +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
xeluxee
d74af818c0 system_open: use asynchronous vim.loop to spawn process + let user customize the command to be used to open a file/folder with default system application (#551) 2021-08-14 15:13:56 +02:00
颜贵彬
7014b6aff4 Feat: add focus on tree functionality (#563) 2021-08-14 11:06:56 +02:00
wongxy
b8b70cf340 feat(diagnostics): Support coc as diagnostic source(#555) (#556) 2021-08-14 11:00:18 +02:00
kiyan
6175d63eae fix for luacheck ci 2021-08-08 14:32:56 +02:00
kiyan
e5a534f51b fix: do not block search with hijack cursor 2021-08-08 01:40:07 +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
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