Commit Graph

447 Commits

Author SHA1 Message Date
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
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
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
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
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
kiyan
2934370fa3 chore: replace git.io link with bit.ly 2022-04-26 21:25:34 +02:00
kiyan
0b115ac3a7 fix: avoid overriding saved cursors when opening/closing
fixes #1197
2022-04-26 21:21:29 +02:00
Kiyan
3ac443207f #1166 validate config (#1195) 2022-04-26 21:11:24 +02:00
Andreas Bissinger
a94f5bf776 fix: correct line when moving in tree (#1200) 2022-04-26 21:10:27 +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
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
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