Commit Graph

696 Commits

Author SHA1 Message Date
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
kiyan
95a5c2d4bc fix: add parent ref to nodes
also refactor movement go to parent
fixes #1148
2022-04-21 20:39:14 +02: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
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
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
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
Mauricio Poppe
8340753e26 Preserve cursor position across redraws (#1132) 2022-04-03 14:23:07 +02:00
Alexander Courtis
00fd8aefe0 feat: filters.custom can specify regex (#1112) 2022-04-02 13:03:57 +02:00
kiyan
4d8ab7d158 fix: close and reopen file as edit when tree is overriden
fixes #1126
2022-04-02 13:00:20 +02:00
Alexander Courtis
62906f095b fix: collapse exit early if nvim-tree not loaded (#1128) 2022-04-02 12:40:59 +02:00
Alexander Courtis
51d1af4ee2 stylua indent 2022-04-02 12:59:06 +11:00
kiyan
5958fd5d06 refacto: use view.resize in view.reposition_window 2022-03-29 19:42:51 +02:00
kiyan
524758a207 chore: remove auto close
also fix emmylua errors in log.lua file
fixes #1005
fixes #871
2022-03-27 12:13:24 +02:00
Alexander Courtis
bd23c88608 profile uses uv.hrtime (#1110) 2022-03-27 11:49:46 +02:00
Alexander Courtis
cc387e8314 Merge pull request #1107 from kyazdani42/#1099-search-obey-ignored
#1099 search obeys active ignore filters
2022-03-27 13:48:02 +11:00
kiyan
1831417f05 refacto: add get_nodes_starting_line core util 2022-03-26 14:46:44 +01:00
Alexander Courtis
54c78dbca2 #791 add profiling for some operations (#1108) 2022-03-26 13:22:28 +01:00
Alexander Courtis
015234e032 #837 find file symlinks fixes (#1093) 2022-03-26 13:17:34 +01:00
Alexander Courtis
54c7cdbabb #1099 search obeys active ignore filters 2022-03-26 12:51:18 +11:00
Alexander Courtis
1352cb312c naming fix for luacheck 0.26.0 2022-03-26 12:29:01 +11:00