Skip to content

Commit

Permalink
fix(disable_tabline): options moved to AstroCore
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 13, 2024
1 parent a8ce8f3 commit 7458624
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/content/docs/recipes/disable_tabline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<Leader>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 `<Leader>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`
Expand Down

0 comments on commit 7458624

Please sign in to comment.