From 090b75d52be418c083527480c1f83c11b67fcdcf Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Tue, 1 Sep 2026 18:53:59 +0200 Subject: [PATCH] feat: Open help in new tab --- lua/plugins/astrocore.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 4065a1b..d59f07b 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -151,6 +151,20 @@ return { }, -- Autocmd 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 = { { event = { "BufRead", "BufNewFile" },