Commit Graph

178 Commits

Author SHA1 Message Date
Andreas Bissinger
7cb689795e
feature: add feature to increase/decrease size (#1048) 2022-03-06 11:33:28 +01:00
Andreas Bissinger
5015e7226c
remove tabs (#1047) 2022-03-05 13:38:26 +01:00
kiyan
0e7856fd8d BREAKING_CHANGE: nvim-tree buffer was renamed
You should now use `NvimTree_*` when matching with an autocmd
There is now 1 buffer per tabpage.
2022-03-01 20:58:04 +01:00
kiyan
6af2d5a720 chore: move auto_resize to actions.open_file.resize_window
fixes #1034
2022-03-01 20:07:36 +01:00
kiyan
19346da6e1 fix: abandon window and bufnr before editing file
fixes a vinegar mode issue
2022-02-22 21:45:37 +01:00
Richard Mathieson
3486c48225
fix: add config for preserving window proportions on open file (#999) 2022-02-22 14:04:14 +01:00
kiyan
f8f297acbf feat: add vinegar abilities to the tree
fixes #860
2022-02-21 21:42:43 +01:00
kiyan
1a5ee2870e fix: fallback to window 0 when winnr is nil in focus
fixes #982
2022-02-15 08:16:42 +01:00
kiyan
ac3f02a83e tempfix: redraw when setting cursor to address a neovim issue
addresses #970
2022-02-14 19:26:55 +01:00
Kiyan
6da7467944
refacto: buffer management, setup fixes, autocmd fixes (#967) 2022-02-14 19:16:45 +01:00
kiyan
36afa32018 chore: move _prevent_buffer_override in entry file 2022-02-11 10:11:59 +01:00
kiyan
5744c469a6 fix(temporary): defer colors setup and hijack window
lazy loading + opening will close the window. Need to find a fix for
this.
fixes #947
2022-02-09 21:01:02 +01:00
kiyan
879049ac03 fix: create buffer during setup schedule
and move view setup before setup schedule
Fixes #951
2022-02-09 19:29:43 +01:00
kiyan
f183c7f311 chore: move last autocmds from view to entrypoint 2022-02-08 20:56:02 +01:00
boppyt
230a61db91
fix: disable highlighting 'number' when CursorLine is enabled (#941) 2022-02-07 18:27:13 +01:00
kiyan
1fe29f8eef chore: move g:nvim_tree_quit_on_open into open_file action config 2022-02-05 18:42:08 +01:00
kiyan
5697dc4fcf fix: typo in view for focused file
fixes #782
2022-02-05 14:04:58 +01:00
kiyan
14461373e0 refacto: move all keybind logic to actions/init 2022-01-21 12:21:23 +01:00
Carlos Coves Prieto
fa8bb09de4
custom node keymaps (#855) 2022-01-21 11:03:49 +01:00
Carlos Coves Prieto
9c0f410c50
preserve previous focus (#841) 2022-01-21 10:57:50 +01:00
kiyan
e49bd8ffd3 chore(doc, mappings): remove S-CR mapping because its invalid
Fixes #850
2021-12-24 12:57:19 +01:00
Rónán Carrigan
bb12c70367
fix(view): check wins are floating (#863) 2021-12-24 12:46:22 +01:00
Queensferry
0aec64d56c
feat: set up view width/height with function (#848) 2021-12-16 22:15:47 +01:00
Xun
bc13a1ffca
allow signcolumn settings (#805) 2021-12-12 13:00:54 +01:00
Raafat Turki
e842f08884
feat: add trashing (#749) 2021-11-28 15:26:24 +01:00
JavierPoduje
9db956fab7
feat: allow number and relativenumber settings (#762) 2021-11-28 14:18:43 +01:00
Kiyan
6662b60a2b
feat/chore: rewrite git with job and some other fixes (#743)
* feat/chore: rewrite git with job and some other fixes

* fix: fs clear window, rename echo_warning -> warn

also fix renaming and add an event blocker to avoid running many events
at the same time
2021-11-27 16:02:54 +01:00
M.A
fd3969ec98
feat: add hide_root_folder (#728) 2021-10-24 16:48:57 +02:00
kiyan
edc74ee6c4 fix: add normalNC color group
fixes #709
2021-10-09 14:28:54 +02:00
kiyan
22e64cc736 fix: add sign column to winhl 2021-10-09 14:26:23 +02:00
Kiyan
ef2c3bfc52
feat: add normal nc highlight group (#705) 2021-10-09 10:35:58 +02:00
kiyan
f81484274f fix: avoid view erroring because of mark 2021-10-07 22:03:53 +02:00
kiyan
29e5b754b7 fix: quit after buffer override with g:nvim_tree_quit_on_open 2021-10-03 14:15:57 +02:00
kiyan
fb32f35d7f chore: allow configuring height
also fixes window management for top and bottom tree side
2021-10-03 14:13:10 +02:00
kiyan
cd7be73b08 feat: completely filter out base mappings if user mappings are defined 2021-10-02 14:20:20 +02:00
kiyan
1fe211eda0 fix: update to buf directory implementation 2021-10-01 14:04:07 +02:00
kiyan
1b04082872 fix: do not display empty string or nil callbacks in help view 2021-09-30 13:17:05 +02:00
kiyan
3633e728e0 chore: refacto view setup and simplify the code 2021-09-26 14:55:49 +02:00
kiyan
4db5dfa320 fix: set nowrap in buffer instead of on each draw 2021-09-12 14:16:12 +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
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
3bac5633e1
feat: open tree on directory (#288) 2021-08-28 11:39:10 +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
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
kiyan
d3e76b81e5 resize on override 2021-07-20 00:25:44 +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
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
booperlv
d311c22d46
add option to make width a percentage of "&columns" (#473) 2021-06-30 21:55:41 +02:00
kiyan
10e845e01c BREAKING CHANGE: make keybindings more configurable and add option to disable default 2021-06-30 21:54:17 +02:00
kiyan
86188a4b9d fix(resize): reimplement auto resize 2021-06-30 21:21:06 +02:00
kiyan
a59a4120a4 chore(help ui): switch ? to g? because ? is for backward search 2021-06-28 20:05:48 +02:00
Luke Kershaw
a06f949607
feat: Help UI for keybindings (#470) 2021-06-28 19:38:05 +02:00
lvim-tech
bfeaf4c8ef
Remove cursorcolumn and colorcolumn (#445) 2021-06-15 21:49:40 +02:00
Zi莱卷
d6ab59fd5a
feat: Support copy name and path (#385) 2021-05-21 08:32:48 +02:00
kiyan
825cf570bf fix: open on tabpage when tree is already open only 2021-05-17 22:32:36 +02:00
Kristijan Husak
577df96b07
Set nowait on mappings to avoid timeout for conflicting mappings. (#375) 2021-05-17 22:24:47 +02:00
Sindre T. Strøm
c235df7aaa
Rename the rogue buffer. (#327) 2021-04-20 23:44:24 +02:00
Akin
983963779d
feat: add statusline winhighlight to explorer tree (#326) 2021-04-20 19:59:32 +02:00
kiyan
c995d65b7d fix: put resize before preview ends 2021-04-19 23:59:37 +02:00
Sindre T. Strøm
f275d3faae
fix(view): Fix error thrown when trying to wipe buffer in autocmd window. (#314) 2021-04-18 18:43:24 +02:00
Kiyan
783870cda9
fix: handle new tabs properly (#313) 2021-04-18 11:11:56 +02:00
kiyan42
2fffd847bd fix: keybindings not being set 2021-04-17 21:31:02 +02:00
kiyan42
a0c1d9d2b5 fix: prevent_buffer_override
- vim.schedule the buffer override autocmd to avoid being done before
  other ones thus failing some of the cursor movement
- pcall the nvim_win_set_cursor to avoid failing when cursor is out of
  the window
2021-04-17 21:03:27 +02:00
kiyan42
3d2144c73c fix SignColumn should be NvimTreeNormal 2021-04-17 17:10:28 +02:00
kiyan
dc59fa484d feat: add command to prevent nvim-tree window override by another buffer 2021-04-16 23:07:10 +02:00
Sindre T. Strøm
4ee45d9261
fix(view): Recreate tree buffer if deleted, and handle scenario where buffer already exists. (#307) 2021-04-16 22:32:54 +02:00
kiyan
4b24a16ca1 ask user for quitting nvim when nvim-tree is the last window 2021-04-16 21:50:43 +02:00
Sindre T. Strøm
4271180aea
Don't create a new empty buffer on every open. (#300) 2021-04-16 09:32:27 +02:00
kiyan
75338221b0 switching to buffer -> to avoid bufwinenter being ignored 2021-04-15 23:03:41 +02:00
kiyan
f7047d63c8 highlight signcolumn as normal in tree window 2021-04-14 23:50:46 +02:00
kiyan
91c3d1b5eb do not follow global hide options for buffer 2021-04-14 23:46:44 +02:00
Kiyan
ff814676d5
chore: rewrite buffer/window handling into view file (#287) 2021-04-13 23:54:01 +02:00