Alexander Courtis
8198fa01fc
doc: default mappings
2022-05-30 12:53:28 +10:00
kiyan
5e900c2f29
refacto: tree explorer root should be absolute_path not cwd
2022-05-29 11:40:06 +02:00
emmanueltouzery
3806653d75
new option: close windows displaying removed files ( #1300 )
2022-05-29 11:23:01 +02:00
Kiyan
3a95c5a9cf
feat(actions): expand all under folder ( #1292 )
2022-05-29 11:15:32 +02:00
Alexander Courtis
0373680819
#1301 nvim uses LuaJIT 2.1 -> lua 5.1
2022-05-29 12:29:40 +10:00
Alexander Courtis
c3b7be8d19
add .luarc.json for lua-language-server and fix a couple of nits ( #1296 )
2022-05-28 11:16:54 +02:00
Alexander Courtis
e482bad61c
doc: tidy spacing and consistency
2022-05-28 15:45:41 +10:00
Alexander Courtis
84cb79e760
update auto-close answer
2022-05-28 12:13:50 +10:00
Alexander Courtis
3ba383d591
chore/remove globals ( #1279 )
...
* remove renderer globals: nvim_tree_add_trailing nvim_tree_highlight_opened_files nvim_tree_root_folder_modifier nvim_tree_special_files
* remove renderer globals: nvim_tree_icon_padding
* remove renderer globals: nvim_tree_symlink_arrow
* remove renderer globals: nvim_tree_show_icons, nvim_tree_show_icons
* remove renderer globals: nvim_tree_git_hl
* remove renderer globals: nvim_tree_group_empty
* remove renderer globals: respect_buf_cwd
* remove renderer globals: nvim_tree_create_in_closed_folder
* remove globals: consistency in legacy checks
* remove renderer globals: nvim_tree_special_files
* renderer.icons.symbols -> glyphs
2022-05-28 11:08:40 +10:00
bstaint
6abc87b1d9
feat: msys2 git support ( #1295 )
2022-05-26 15:22:42 +02:00
kiyan
540c811cb2
fix(open file): do not trigger buf enter event when setting target win
...
Fixes #1288
Also starts a refactoring of the open-file code, to make it easier to
debug and improve.
2022-05-26 13:37:50 +02:00
Taxo Rubio
b2ba6dea71
feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle ( #1276 )
2022-05-21 13:31:14 +02:00
kiyan
73ab312820
refactor: simplify opening file in new tab
...
fixes #1271 . Also fixes opening a file in new tab when close_on_open was
true.
This introduces breaking change since we don't do any extra behavior
and let the buffer be opened by the tree.
The previous behavior was a bit old and i believe this should've been
fixed by now.
Reference this commit if unexpected behavior appears while opening files
in new tabs from nvim-tree.
2022-05-21 12:09:09 +02:00
kiyan
9d6f4c184b
chore: remove custom set local implementation
...
Seems vim.opt_local has been fixed.
see https://github.com/neovim/neovim/issues/14670
2022-05-21 11:36:07 +02:00
kiyan
17d5bd64e8
chore(config): auto resize the tree by default when opening a file.
...
config.open_file.auto_resize is now true by default.
Breaking change for default configurations.
See https://github.com/kyazdani42/nvim-tree.lua/issues/1275#issuecomment-1133515999
2022-05-21 11:27:49 +02:00
Michael
9563a11ce0
feat: reload explorer on buf enter ( #1265 )
2022-05-17 10:04:08 +02:00
Kiyan
6343813a35
feat(live-filter): add ability to live filter out nodes in the tree ( #1056 )
2022-05-17 10:03:49 +02:00
Alexander Courtis
99e32fea14
add fish performance tip to README.md
2022-05-17 13:03:59 +10:00
kiyan
9d26594b6c
fix(renderer): empty space at end of line
...
fixes #1253
2022-05-15 10:28:17 +02:00
kiyan
7293f8dc70
fix(renderer): padding when git icons are after the name
...
fixes #1253
2022-05-14 13:41:58 +02:00
kiyan
d88d12f5bc
Revert " #1253 only pad git icons when they are present ( #1259 )"
...
This reverts commit 90d7b8edb1 .
fixes #1267
2022-05-14 13:31:37 +02:00
muro3r
aefa66c04d
feat: extension sorter ( #1181 ) ( #1264 )
2022-05-14 10:54:01 +02:00
Kiyan
f8312cd06f
feat(renderer): add ability to set git icons in signcolumn ( #1242 )
2022-05-14 09:54:27 +02:00
Michael
46014449b6
refactor: use lua api for user commands and autocommands ( #1206 )
...
BREAKING: plugin now requires nvim-0.7
2022-05-14 09:49:45 +02:00
Alexander Courtis
90d7b8edb1
#1253 only pad git icons when they are present ( #1259 )
2022-05-14 09:35:44 +02:00
Alexander Courtis
f85af83f13
#1217 show git status for link targets, when no status on the link itself ( #1263 )
2022-05-14 09:34:53 +02:00
Alexander Courtis
82ec79aac5
#1216 show diagnostic signs on all folders ( #1244 )
2022-05-10 11:22:11 +10:00
Kiyan
47732b6dbf
chore(doc): improve help by allowing accessing nested options ( #1246 )
2022-05-09 08:59:09 +02:00
kiyan
9049f364cc
fix: stylua hook
2022-05-08 16:14:40 +02:00
kiyan
82a646225f
fix(parent node): do not close folder when should_close is false
2022-05-08 13:30:57 +02:00
Alexander Courtis
a448e66dde
#1216 respond to CocDiagnosticChange ( #1243 )
2022-05-08 11:41:20 +02:00
Kiyan
b1dfcabba1
chore(diagnostics): clear whole group instead of keeping a table ( #1241 )
2022-05-08 11:40:53 +02:00
Kiyan
d8aad37997
fix(close-node): do not close parent when current node is open ( #1239 )
2022-05-08 11:38:05 +02:00
Kiyan
a1600e57f2
feat(renderer): allow placing git icons after filename ( #1203 )
...
This feature allows placing git icons after the filename.
2022-05-07 14:05:51 +02:00
kiyan
ec888d08ce
fix(open file): set target win when opening new file
...
fixes #1214
Still this is a patch that is not really great. This code should be
rewritten.
2022-05-07 12:16:26 +02:00
kiyan
545c43ffd9
chore(doc): add information about nightly tag in readme
2022-05-07 11:57:05 +02:00
Alexander Courtis
543c07aa7a
#1228 close moves focus to previous win on current tab ( #1235 )
2022-05-07 11:26:22 +02:00
Alexander Courtis
d54fc28045
1221 handle deprecated vert split ( #1225 )
2022-05-07 11:20:58 +02:00
Alexander Courtis
743e3b5454
Tweak Bug Report Form ( #1230 )
2022-05-07 11:15:18 +02:00
Kiyan
db873b340d
chore(diagnostics): move updates to renderer ( #1218 )
...
should address #1216
2022-05-07 11:14:32 +02:00
Alexander Courtis
97d8557cb2
1210 silent migrate more options ( #1215 )
2022-05-07 11:13:46 +02:00
Alexander Courtis
483f1550d1
Revert "fix: replace vertsplit highlights ( #1142 ) ( #1219 )" ( #1223 )
...
This reverts commit 86d573dad7 .
2022-05-01 17:03:44 +10:00
siduck
86d573dad7
fix: replace vertsplit highlights ( #1142 ) ( #1219 )
2022-04-30 17:47:29 +02:00
kiyan
428898154f
chore: lib can be required directly in movements.lua
2022-04-30 16:41:26 +02:00
Vincent Law
fd2332a33f
feat: case sensitive sorter ( #1198 )
2022-04-28 10:43:58 +10:00
matt rice
eeb842c820
add get_config ( #1205 )
2022-04-27 19:26:18 +02:00
kiyan
8e38f5dd5a
fix(opt validation): allow height and width to be of different types
...
fixes #1207
2022-04-27 19:25:08 +02:00
kiyan
ce2cf7131f
refactor(renderer): refactor git handling
...
Concat and apply git highlight inside the builder.
This allows to not leak private data from builder to the git component.
This will also now allow us to customize git icon placement.
2022-04-26 22:59:16 +02:00
kiyan
0d6c0dda3d
refactor(renderer): remove set_folder_hl function from icons
...
This greatly simplifies the folder highlighting logic. It wasn't clear
before and the code was probably doing more than it should. The logic
with highlight_opened_file wasn't working at all, so i just removed it.
This should allow us to greatly extend the order in which the components
are rendered.
2022-04-26 22:28:40 +02:00
kiyan
d8fe48a887
refactor(renderer): return hl group from get_file_icon
...
this allows to not pass private data from builder to component
2022-04-26 21:50:34 +02:00