chore(build): auto-generate docs

This commit is contained in:
folke 2024-11-09 14:02:17 +00:00 committed by github-actions[bot]
parent 340cc2756e
commit 18686a41ff
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
*snacks.nvim.txt* For Neovim Last change: 2024 November 08
*snacks.nvim.txt* For Neovim Last change: 2024 November 09
==============================================================================
Table of Contents *snacks.nvim-table-of-contents*

View file

@ -63,12 +63,14 @@ Based on the provided options, some defaults will be set:
wo = {},
keys = {
gf = function(self)
local f = vim.fn.findfile(vim.fn.expand("<cfile>"))
local f = vim.fn.findfile(vim.fn.expand("<cfile>"), "**")
if f == "" then
Snacks.notify.warn("No file under cursor")
else
self:close()
vim.cmd("e " .. f)
self:hide()
vim.schedule(function()
vim.cmd("e " .. f)
end)
end
end,
term_normal = {