feat(plugins/toggleterm): assign random name to terminals

This commit is contained in:
Nicolas Goudry 2024-06-12 12:04:27 +02:00
parent 714a000001
commit 2d031c9e48
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44

View file

@ -31,6 +31,7 @@ _:
if t.hidden then if t.hidden then
vim.keymap.set({ "n", "t", "i" }, "<F7>", function() t:toggle() end, { desc = "Toggle terminal", buffer = t.bufnr }) vim.keymap.set({ "n", "t", "i" }, "<F7>", function() t:toggle() end, { desc = "Toggle terminal", buffer = t.bufnr })
end end
vim.cmd(t.id .. "ToggleTermSetName " .. rndname())
end end
''; '';
}; };