Commit Graph

828 Commits

Author SHA1 Message Date
kiyan
9937749838 chore(githooks): fix stylua check 2022-04-24 16:32:37 +02:00
kiyan
efcadc482b refactor(renderer): extract build line function 2022-04-24 15:08:05 +02:00
kiyan
785761591f stylua 2022-04-24 14:43:41 +02:00
kiyan
09a47aed8d Revert "#1166 validate user's options (#1177)"
This reverts commit 5bbd3a0a91.
2022-04-24 14:41:48 +02:00
kiyan
2c46464226 chore: add more sensible defaults for icons
adds a symlink and default icon by default
fixes #1192
2022-04-24 11:29:03 +02:00
kiyan
2bf6241989 fix(renderer): render hl should take a table of saved highlights
fixes #1190
2022-04-24 11:20:23 +02:00
Alexander Courtis
5bbd3a0a91
#1166 validate user's options (#1177) 2022-04-24 11:17:05 +02:00
Alexander Courtis
74ae97098f
#1184 only close the current tabpage (#1188) 2022-04-24 11:15:47 +02:00
Alexander Courtis
bf467a7cf4
#1169 document event payloads (#1187) 2022-04-24 11:15:08 +02:00
Alexander Courtis
c46653b4a3 #1186 open fail when nvim_tree_show_icons.folders = 0 2022-04-24 11:43:28 +10:00
kiyan
15d5e0609a refactor(renderer): extract folder name creation 2022-04-23 15:36:27 +02:00
kiyan
ec6ccf33ff refactor(renderer): abstract configuration related code
- vim.g variables passed as configuration for builder in
  renderer/init.lua.
- pass special and pictures maps during configuration
2022-04-23 15:27:30 +02:00
kiyan
d44742bee5 refactor(renderer): line creation into a builder pattern
- use a builder pattern to mount the lines / highlights
- i think we lost a little performance, but gain in design
- code for file/folder icons is abstracted in components/icons.lua
- should also fix the issues where vim.g variables where loaded before
  setup.
2022-04-23 15:15:10 +02:00
kiyan
ebf73f0a9d fix: formatting 2022-04-23 12:45:53 +02:00
kiyan
5675208d13 chore: add pre commit hook 2022-04-23 12:40:43 +02:00
kiyan
d4d02cd4d1 fix: formatting 2022-04-23 12:34:56 +02:00
kiyan
3ecf22ced1 refactor(renderer): icon_state under module table and code smells
- remove line / hl builder from module table and rename function
- icon_state -> M.icon_state
- extract should_show_arrows
2022-04-23 11:58:33 +02:00
kiyan
73fe08d241 refactor(renderer): simplify loop and builders
- do not recur inside folder builder
2022-04-23 11:52:57 +02:00
kiyan
d369ddccb3 refactor(renderer): extract opened file highlighting 2022-04-23 11:42:32 +02:00
kiyan
a419da1f2c refactor(renderer): reorganize file for further refacto 2022-04-23 11:35:04 +02:00
kiyan
df41b0c586 refactor(renderer): extract folder builder 2022-04-23 11:22:28 +02:00
kiyan
018ba086d4 refactor(renderer): extract file builder 2022-04-23 11:20:03 +02:00
kiyan
de49bf4da6 refactor: extract symlink function 2022-04-23 11:17:25 +02:00
kiyan
3084e483ae chore: refacto file placement of renderer components 2022-04-23 11:14:16 +02:00
Alexander Courtis
2c71ffcc0d
add actions.change_dir.restrict_above_cwd (#1171) 2022-04-23 10:45:23 +02:00
kiyan
ce463a53ae Revert "chore: use api to check if buf is loaded"
This reverts commit db91909f5b.
fixes #1182
2022-04-21 21:31:42 +02:00
kiyan
db91909f5b chore: use api to check if buf is loaded 2022-04-21 20:46:24 +02:00
kiyan
95a5c2d4bc fix: add parent ref to nodes
also refactor movement go to parent
fixes #1148
2022-04-21 20:39:14 +02:00
Alexander Courtis
7f2ed4e043
doc: tidy readme logging 2022-04-21 09:57:35 +10:00
kiyan
958bac90d2 chore: drop 0.5 support in diagnostics 2022-04-20 21:40:43 +02:00
Alexander Courtis
0f0f858348
#1157 update lsp diagnostics when the tree state is changed (#1174) 2022-04-18 15:46:42 +02:00
Alexander Courtis
cdbc210d92
#1172 add renderer.icons.webdev_colors default true (#1175) 2022-04-18 15:45:14 +02:00
Harry Prior
cff5a106b2
feat - add open and close tree events (#1151) 2022-04-18 15:41:21 +02:00
Alexander Courtis
ff6ef58b03
#1146 clarify filters.exclude and toggle actions (#1168) 2022-04-18 15:40:15 +02:00
Alexander Courtis
7629d4d106
#1091 diagnostics logging (#1170) 2022-04-18 15:39:51 +02:00
Andreas Bissinger
9066cbf3f7
feat: add file completion (#1163) 2022-04-18 15:36:55 +02:00
Alexander Courtis
84993e9e9f Remove unnecessary packer .config - it will clobber user options! See #1094 2022-04-16 11:27:29 +10:00
Tony Shen
477536cd7e
fix: fix mis-naming for system clipboard config (#1160) 2022-04-12 22:12:13 +02:00
Michael
9c272b97bc
fix: trash filenames with spaces (#1156) 2022-04-11 12:28:51 +02:00
Michael
fc925d814a
fix: add spaces to prompts and blankline to rename output (#1154) 2022-04-11 09:47:23 +02:00
kiyan
94ce41ce96 fix: lib.get_node_at_cursor offset when root folder is /
fixes #1153
2022-04-11 09:45:39 +02:00
Michael
6e0e70b1ca
feat: delete preview buffers #1145 (#1149) 2022-04-10 17:23:37 +02:00
Alexander Courtis
d5e4f0655b
add view.indent_markers (#1134) 2022-04-10 15:40:29 +02:00
Lò [By The Way]
83fe370d52
Added actions.opts.use_sys_clipboard, [issue: 789 ] (#1141) 2022-04-10 15:39:36 +02:00
kiyan
347218d2db doc: add simple contributing.md file 2022-04-09 16:19:58 +02:00
Alexander Courtis
1bdef08cfa
#1059 protect against duplicates (#1143) 2022-04-09 14:59:38 +02:00
Pedro Castro
deb1f253f4
fix(statusline): better window picker highlight (#1139) 2022-04-09 14:56:22 +02:00
kiyan
618ea25613 fix: clear prompt when creating file
fixes #1138
2022-04-06 13:37:17 +02:00
Matthew Steedman
924aa29092
feat: add hl_group for file icons (#1131) 2022-04-04 09:33:11 +02:00
Alexander Courtis
6368880968
add open_on_setup_file option (#1133) 2022-04-03 14:31:40 +02:00