Commit Graph

53 Commits

Author SHA1 Message Date
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
8eed3ff805 chore: add git url in deprecation warning 2021-11-27 13:40:09 +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
422404d3ef fix: lint 2021-10-02 23:14:56 +02:00
kiyan
6416ea3562 chore: add old option detection in plugin/nvim-tree.lua 2021-10-02 14:05:50 +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
颜贵彬
7014b6aff4 Feat: add focus on tree functionality (#563) 2021-08-14 11:06:56 +02:00
kiyan
f178c8c8c5 run nvim tree refresh on neogit status change 2021-07-10 14:25:21 +02:00
Kassio Borges
07dd10663a Add NvimTreeResize to resize the NvimTree window (#497) 2021-07-10 10:52:20 +02:00
kiyan
43a7b529c0 disable update cwd by default 2021-06-11 08:37:15 +02:00
kiyan
3196205131 chore: switch cd to lcd and update root on dirchanged 2021-06-07 20:09:48 +02:00
Kiyan
6dca42d09d feat: hijack cursor (#428) 2021-06-02 19:28:27 +02:00
Sindre T. Strøm
aa026ab87c Revert "feat: reset old window when leaving the tree" (#421) 2021-05-31 22:46:54 +02:00
kiyan
be184bd94e feat: reset old window when leaving the tree 2021-05-28 09:13:37 +02:00
Sindre T. Strøm
4ee45d9261 fix(view): Recreate tree buffer if deleted, and handle scenario where buffer already exists. (#307) 2021-04-16 22:32:54 +02:00
Sindre T. Strøm
da09da3318 feat(diagnostics): More responsive and configurable diagnostics signs. (#303) 2021-04-16 17:57:16 +02:00
Kiyan
82b20f5b5e feat: nvim lsp integration (#260) 2021-04-08 23:30:35 +02:00
kiyan
e5bd242003 hotfix: slient file explorer autocmd if it doesnt exist 2021-03-30 23:41:55 +02:00
Federico Scodelaro
31ef294d05 Patch windows (#222) 2021-03-09 20:12:10 +01:00
RedBug312
3bd96e3caa Fix dependency problem
require 'nvim-web-devicons' fails if colors.setup done in plugin/. This
may be related to loading order.
2021-02-19 18:09:59 +01:00
RedBug312
c9ed6c804b Move NvimTreePopup highlight link 2021-02-19 18:09:59 +01:00
RedBug312
25208ed91d Avoid colors.setup() being deferred 2021-02-19 18:09:59 +01:00
dorgnarg
aab0a136ac Give users the option to enable netrw 2021-02-15 09:28:28 +01:00
Zi莱卷
86944b51c0 renaming: lua-tree -> nvim-tree 2020-12-28 16:32:27 +01:00
kiyan42
05711754d9 renaming: lua-tree -> nvim-tree 2020-12-27 19:14:34 +01:00
kyazdani42
6c2ee96207 open tree on package load instead of vimEnter 2020-10-24 09:11:11 +02:00
kiyan42
9eea2b8c62 feat: add ability for the tree to change tab
- remove tags file
- open/close the tree on `TabEnter` with the option `g:lua_tree_tab_open`
2020-08-18 19:11:10 +02:00
Kristijan Husak
4231ada075 Refresh tree on fugitive git status change. 2020-08-03 15:35:26 +02:00
kiyan42
33a48cd80f open tree on find 2020-07-23 11:16:25 +02:00
Kristijan Husak
89df407737 Add command to print clipboard content. 2020-07-21 15:14:05 +02:00
kyazdani42
3997c53df6 fix: check on_leave on WinClosed for :x to save properly 2020-06-04 21:56:37 +02:00
kiyan42
058cd31e2a better logic for closing the tree 2020-05-30 01:55:29 +02:00
kiyan42
e0bfcb4a6f Refacto: rewrite everything
- The tree is created with libuv functions, which makes it blazingly fast.
- The tree may now be faster than any other vim trees, it can handle directories with thousands of files without any latency at all (tested on 40K files, works flawlessly).
- More solid logic for opening and closing the tree.
- tree state is remembered (closing / opening a folder keeps opened subdirectories open)
- detection of multiple git projects in the tree
- more icon support
- smart rendering
- smart updates
- ms windows support
- gx replacement function running xdg-open on linux, open on macos
2020-05-29 15:33:47 +02:00
Akin Sowemimo
9201d123fd Add config option to follow buffer directory 2020-05-18 23:51:43 +02:00
kiyan42
020db73532 Add colorscheme update and add filetype to buffer. 2020-05-17 18:21:03 +02:00
kiyan42
c003626dee make linking of default groups for tree style and add docs 2020-04-03 11:50:14 +02:00
kiyan42
3678169bd6 add config to open or close automatically 2020-03-04 13:15:33 +01:00
kyazdani42
03168a5155 fix tree when option is 'right' 2020-03-01 19:24:24 +01:00
kyazdani42
daff837b23 add LuaTreeFindFile, doc and option 2020-02-28 17:24:08 +01:00
kyazdani42
f6e44c1726 cd to folder when doing nvim FOLDER and layout code
- when doing `nvim FOLDER` it works as expected, opening the tree
on the correct folder (updating the ROOT_PATH)
- add the code for keeping the tree window on the side no matter
what, but since the lack of window events, disable this feature.
2020-02-28 01:03:34 +01:00
kyazdani42
e5db994ebb protect plugin against windows and prevent macos from crashing due to --ignore 2020-02-22 17:36:05 +01:00
kiyan42
f5af7aa95d add some options for the user and info in the readme 2020-02-20 21:16:13 +01:00
kyazdani42
6670b8e494 quit when tree is last buf, open on enter if dir or no file 2020-02-19 23:47:25 +01:00
kyazdani42
6d9831b2a5 color init in lua 2020-02-19 17:57:36 +01:00
kyazdani42
3e1ce735b9 make sure plugin dont crash when no terminal_color is set 2020-02-19 17:31:16 +01:00
kyazdani42
05b5117f75 better git format and parsing 2020-02-19 16:46:25 +01:00
kyazdani42
1c4fb795fb add git refresh 2020-02-19 14:32:33 +01:00
kiyan42
f8fb6de9c6 add git integration 2020-02-18 18:22:05 +01:00
kiyan42
7b7fb56c4e better format 2020-02-18 14:30:32 +01:00
kyazdani42
98d94876f2 start refresh. Need to find a way to trigger the function when FS is altered 2020-02-14 17:42:07 +01:00