Skip to content

Commit

Permalink
feat(tabline)!: do not set showtabline. Fix #73
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Oct 24, 2022
1 parent 60cb8e5 commit f46554a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,7 @@ local TabLine = { TabLineOffset, BufferLine, TabPages }
require("heirline").setup(StatusLines, WinBar, TabLine)

-- Yep, with heirline we're driving manual!
vim.o.showtabline = 2
vim.cmd([[au FileType * if index(['wipe', 'delete'], &bufhidden) >= 0 | set nobuflisted | endif]])
```

Expand Down
1 change: 0 additions & 1 deletion lua/heirline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function M.setup(statusline, winbar, tabline)

if tabline then
M.tabline = StatusLine:new(tabline)
vim.o.showtabline = 2
vim.o.tabline = "%{%v:lua.require'heirline'.eval_tabline()%}"
end
end
Expand Down

0 comments on commit f46554a

Please sign in to comment.