Commit Graph

515 Commits

Author SHA1 Message Date
kiyan
64c31aaec7 fix: link normalNC and signcolumn to normal 2021-10-10 10:59:40 +02:00
kiyan
edc74ee6c4 fix: add normalNC color group
fixes #709
2021-10-09 14:28:54 +02:00
kiyan
22e64cc736 fix: add sign column to winhl 2021-10-09 14:26:23 +02:00
kiyan
a51795946e fix: remove change_dir window event check
fixes #673. Not sure why this check was added in the first place, but
some testing made me realize maybe it wasn't useful.
2021-10-09 10:54:43 +02:00
Taylor Bartlett
dbd13439b9 fix: #703 (#708) 2021-10-09 10:45:38 +02:00
Kiyan
ef2c3bfc52 feat: add normal nc highlight group (#705) 2021-10-09 10:35:58 +02:00
gzygmanski
385f8c89e0 feat: show default file icon when nvim-devicon is not installed (#696) 2021-10-08 21:53:31 +02:00
Unoqwy
c0dcbbd285 add special files using absolute paths (#707) 2021-10-08 21:53:09 +02:00
kiyan
618286b726 fix: get_node_at_line for group nodes 2021-10-08 20:01:09 +02:00
Kiyan
6f8dc1d41c Revert "add icons for default and symlink (#649)" (#706)
This reverts commit 34af2d22ad.
2021-10-08 19:33:55 +02:00
Jakub Łuczyński
08a29d350e Fixed clear_prompt (#693) 2021-10-08 19:26:43 +02:00
kiyan
f81484274f fix: avoid view erroring because of mark 2021-10-07 22:03:53 +02:00
kiyan
7ca37f824b fix: run find_file on DirChanged if update_focused_file is enabled
fixes #690
2021-10-05 17:51:48 +02:00
kiyan
29e5b754b7 fix: quit after buffer override with g:nvim_tree_quit_on_open 2021-10-03 14:15:57 +02:00
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