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
Andrew Wong
64aacb67ab
fix: don't populate git status when git unused ( #499 )
2021-07-10 10:05:53 +02:00
sansone931
933d69a37f
Fix error caused by broken symlinks ( #494 )
...
When a symbolic link points to an invalid path, the value of `link_to`
equals `nil`. This value makes `utils.path_relative` throw an error,
since it expects a string as the first argument
2021-07-07 08:30:22 +02:00
kiyan
4388338a6a
use setlocal to avoid losing window options (neovim regression using lua api for setting options)
2021-07-06 20:58:51 +02:00
YIQUN
db9e70fde5
open file with relative path when possible ( #487 )
2021-07-06 20:46:10 +02:00
Luke Kershaw
fd7f60e242
feat(help ui): allow custom names to be provided for custom keybinds ( #485 )
2021-07-06 20:43:35 +02:00
kiyan
589c36e26f
fix(keymap setup): do not crash on vim.fn.extend to explain the user keymap config has changed
2021-07-02 15:12:12 +02:00
kiyan
4a9a17b7f1
fix(bindings): use vim.fn.extend instead of vim.tbl_extend
2021-07-02 10:12:33 +02:00
kiyan
f42f6095d7
fix(bindings): typos
2021-07-02 10:09:05 +02:00
kiyan
a01a33f9a8
fix(help ui): adapt to new bindings and fix code lint/format
2021-07-01 10:35:01 +02:00
kiyan
7abec5e594
fix(sshfs): use stat to get the filetype when fs_scandir does not return the type
2021-06-30 22:29:11 +02:00