feat: Open help in new tab

This commit is contained in:
2026-09-01 18:53:59 +02:00
parent b5d86659ff
commit 090b75d52b
+14
View File
@@ -151,6 +151,20 @@ return {
}, },
-- Autocmd -- Autocmd
autocmds = { autocmds = {
-- Configuration pour ouvrir l'aide dans un nouvel onglet
help_in_tab = {
{
event = "BufWinEnter",
pattern = "*.txt",
callback = function()
if vim.bo.filetype == "help" then
-- Déplace le buffer d'aide vers un nouvel onglet
vim.cmd "wincmd T"
end
end,
desc = "Ouvre l'aide dans un nouvel onglet",
},
},
yaml_trailing_spaces = { yaml_trailing_spaces = {
{ {
event = { "BufRead", "BufNewFile" }, event = { "BufRead", "BufNewFile" },