From 745862436bf0c4010856c7acdff7f4783081869e Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 13 Feb 2024 10:53:51 -0500 Subject: [PATCH] fix(disable_tabline): options moved to AstroCore --- src/content/docs/recipes/disable_tabline.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/content/docs/recipes/disable_tabline.md b/src/content/docs/recipes/disable_tabline.md index 060f7e1ce..d59900a32 100644 --- a/src/content/docs/recipes/disable_tabline.md +++ b/src/content/docs/recipes/disable_tabline.md @@ -3,10 +3,22 @@ id: disable_tabline title: Disable Tabline --- -By default AstroNvim uses Heirline for generating the tabline for displaying buffers as tabs. Some users may not like this behavior and prefer to not have the bar at the top. You can do this a couple ways. The easiest would be to set `vim.opt.showtabline` to `0` which will hide the bar but still let it be toggled in the UI as well as let the interactive buffer picker with `b` to function when necessary. To do this you simply want to add the following to your vim options: +By default AstroNvim uses Heirline for generating the tabline for displaying buffers as tabs. Some users may not like this behavior and prefer to not have the bar at the top. You can do this a couple ways. The easiest would be to set `vim.opt.showtabline` to `0` which will hide the bar but still let it be toggled in the UI as well as let the interactive buffer picker with `b` to function when necessary. To do this you simply want to add the following to your plugins: -```lua title="lua/config/options.lua" ins={1} -vim.opt.showtabline = 0 +```lua title="lua/plugins/hide_tabline.lua" +return { + { + "AstroNvim/astrocore", + ---@param opts AstroCoreOpts + opts = { + options = { + opts = { + showtabline = 0, + }, + }, + }, + }, +} ``` ## Fully disable `tabline`