nvim-tree.lua/lua/nvim-tree
Peter van der Meulen e05ed6a60f
feat(view): add view.width.padding (#1941)
* fix: variable width accounts for sign/number columns

* Add dynamic sizing padding options

with https://github.com/neovim/neovim/pull/20621 merged in it is now
possible to fully customize the status-column in nvim (the column on the
left containing line-numbers, fold info, signs and borders).

A fair few cool implementations have popped up like:
- https://github.com/CKolkey/config/blob/master/nvim/after/plugin/statuscolumn.lua
- https://github.com/luukvbaal/statuscol.nvim
- and my own personal one (based on CKolkey's fantastic work) https://git.hendrikpeter.net/hendrikpeter/pico-vim/-/blob/main/lua/peva/status_column.lua

The problem with nvim-tree however is that dynamic sizing doesn't take
the custom size of a status column into account and the end of file
names get clipped off. This little patch should fix that (and give some
examples to help other status_column modders get started).

Thanks for looking at this and thanks for making this amazing plugin,
I've been using it for a while and I really like it!

* allow padding function, update docs, rollback readme

* typo in example setup

* help formatting

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-01-28 14:07:14 +11:00
..
actions fix: remove redundant file existence check in create file operation (#1936) 2023-01-23 15:12:45 +11:00
explorer feat(git): support DA state, fix(#1822): test directory capable of watching before presenting it (#1905) 2023-01-10 13:32:53 +11:00
git chore: remove diagnostic suppressions after tidying nits 2023-01-01 13:27:05 +11:00
iterators feat(bookmarks): add bookmark feature (#1412) 2022-07-11 10:00:12 +02:00
marks feat(notify): add notify.threshold (#1693) 2022-11-01 10:24:40 +11:00
renderer feat(git): support DA state, fix(#1822): test directory capable of watching before presenting it (#1905) 2023-01-10 13:32:53 +11:00
api.lua feat(api): api.tree.open/toggle: add current_window option (#1935) 2023-01-24 08:30:49 +11:00
colors.lua feat(view): indicate modified buffers (#1835) 2022-12-31 15:54:04 +11:00
config.lua fix(keypress): use <cmd> instead of : to avoid triggering CmdLineEnter 2022-07-14 09:33:19 +02:00
core.lua fix(#549): add more profiling ~tree init 2022-12-16 12:12:06 +11:00
diagnostics.lua fix(diagnostics): do not show on file/dir with same prefix 2022-12-23 12:44:30 +11:00
events.lua feat(event): add TreeAttachedPost (#1877) 2023-01-07 11:50:41 +11:00
keymap.lua fix: inverted diagnostic navigation keymaps 2022-08-20 14:40:09 +10:00
legacy.lua feat(view): add view.width.min/max replacing adaptive_size, allowing upper bound (#1915) 2023-01-21 15:21:18 +11:00
lib.lua feat(api): api.tree.open/toggle: add current_window option (#1935) 2023-01-24 08:30:49 +11:00
live-filter.lua fix: replace vim.* "requires" with explicit calls to vim functions (#1701) 2022-11-06 10:37:33 +11:00
log.lua chore: remove diagnostic suppressions after tidying nits 2023-01-01 13:27:05 +11:00
modified.lua fix(#1878): nvim frozen on no name buffer when modified.enable (#1879) 2023-01-03 13:11:14 +11:00
notify.lua fix(#1831): improve fs_scandir error handling, add profiling 2022-12-17 16:59:09 +11:00
utils.lua chore: remove diagnostic suppressions after tidying nits 2023-01-01 13:27:05 +11:00
view.lua feat(view): add view.width.padding (#1941) 2023-01-28 14:07:14 +11:00
watcher.lua fix(#1916): suppress EPERM watcher failures on windows (#1919) 2023-01-16 13:00:57 +11:00