diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-06-27 13:08:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-27 14:08:28 -0400 |
| commit | 9202e2c80cea8da009b9c31cf9e0aa204e06397d (patch) | |
| tree | c5b5a4b7297d63e4c1ab7578475cbd96a7388ca5 /runtime/lua/nvim/dir.lua | |
| parent | b138e7a251cb88324cd161788141d0113134d0c6 (diff) | |
| download | rneovim-9202e2c80cea8da009b9c31cf9e0aa204e06397d.tar.gz rneovim-9202e2c80cea8da009b9c31cf9e0aa204e06397d.tar.bz2 rneovim-9202e2c80cea8da009b9c31cf9e0aa204e06397d.zip | |
fix(dir): respect directory buffer lifetime #40453
Problem:
dir.lua leaves previously-navigated directory buffers around.
This is fine by default, but users need a simple way to opt out.
Solution:
1. Respect `set hidden` (via `'bufhidden'`) as one way to make
previously-navigated dir buffers from showing up.
2. Document a one-liner to hide these buffers
Diffstat (limited to 'runtime/lua/nvim/dir.lua')
| -rw-r--r-- | runtime/lua/nvim/dir.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/lua/nvim/dir.lua b/runtime/lua/nvim/dir.lua index fc3ca6c73f..3d2eff4d9b 100644 --- a/runtime/lua/nvim/dir.lua +++ b/runtime/lua/nvim/dir.lua @@ -85,7 +85,6 @@ local function render(buf, dir) not set_buf_options(buf, { { 'modeline', false }, { 'buftype', 'nowrite' }, - { 'bufhidden', 'hide' }, { 'buflisted', true }, { 'swapfile', false }, { 'readonly', false }, |