We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7518f65 commit d0d29dfCopy full SHA for d0d29df
src/routes/docs/recipes.mdx
@@ -100,3 +100,18 @@ vim.g.clipboard = {
100
cache_enabled = 0,
101
}
102
```
103
+
104
+## Show Nvdash when all buffers are closed
105
106
+- You can use nvim_list_bufs() too but vim.t.bufs has only listed bufs
107
108
+```lua
109
+vim.api.nvim_create_autocmd("BufDelete", {
110
+ callback = function()
111
+ local bufs = vim.t.bufs
112
+ if #bufs == 1 and vim.api.nvim_buf_get_name(bufs[1]) == "" then
113
+ vim.cmd "Nvdash"
114
+ end
115
+ end,
116
+})
117
+```
0 commit comments