Kiyan
6662b60a2b
feat/chore: rewrite git with job and some other fixes ( #743 )
...
* feat/chore: rewrite git with job and some other fixes
* fix: fs clear window, rename echo_warning -> warn
also fix renaming and add an event blocker to avoid running many events
at the same time
2021-11-27 16:02:54 +01:00
kiyan
b853e1083c
Revert "fix: remove buffer when its empty when hijacking"
...
This reverts commit 0babcb4f2c .
2021-11-27 14:08:46 +01:00
kiyan
0babcb4f2c
fix: remove buffer when its empty when hijacking
2021-11-27 13:54:17 +01:00
kiyan
a6c1d45dd6
chore: refacto populate filtering
...
move `nvim_tree_ignore` and `nvim_tree_hide_dotfiles` to setup
2021-10-30 12:25:09 +02:00
kiyan
f92b7e7627
fix: hijack current dir when doing :edit .
...
fixes #756
2021-10-30 11:35:44 +02:00
M.A
fd3969ec98
feat: add hide_root_folder ( #728 )
2021-10-24 16:48:57 +02:00
figsoda
514619897f
feat: add NvimTreeFindFileToggle ( #735 )
2021-10-23 15:35:28 +02:00
kiyan
fda5b82bdf
fix: lsp diagnostics user autocmd setup
2021-10-10 17:02:34 +02:00
kiyan
94b8604e86
chore: complete the diagnostic setup migration
...
Colors groups and icons are now in diagnostics.lua. They are defined on
setup which allows an easier configuration and better documentation.
`lsp_diagnostics` boolean value has been moved into a table `diagnostics`
with `enable` and `icons` as properties.
2021-10-10 11:42:22 +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
fb32f35d7f
chore: allow configuring height
...
also fixes window management for top and bottom tree side
2021-10-03 14:13:10 +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
1fe211eda0
fix: update to buf directory implementation
2021-10-01 14:04:07 +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
Sávio Carlos Martins Costa
12e61dd057
fix 'system_open' keypress callback ( #655 )
2021-09-29 21:16:10 +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
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
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
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
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
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
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
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
Matthieu ARENE
8bb58daddb
Feature: add the possibility to not focus tree on TabEnter when ( #545 )
2021-08-07 10:02:03 +02:00
xeluxee
7bed04718e
Feature: open file/folder with default system application ( #539 )
2021-08-02 21:08:24 +02:00
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