Skip to content

Commit

Permalink
simplify tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopunk committed Sep 17, 2024
1 parent 774a7d3 commit 515b768
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/unclutter/tabline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function tabline.make_tabpage_section()
end

local cur_tabpagenr = vim.fn.tabpagenr()
tabline.tabpage_section = (" Tab %s/%s "):format(cur_tabpagenr, n_tabpages)
tabline.tabpage_section = (" %s/%s "):format(cur_tabpagenr, n_tabpages)
end

--- Remove a buffer from the list
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ local bufnr = buffer.current()
tabline.keep(bufnr)

-- navigate tabline buffers (like :bnext and :bprev)
tabline.next() -- Go to next buffer
tabline.prev() -- Go to previous buffer
tabline.next() -- Go to next buffer
tabline.prev() -- Go to previous buffer

-- handle plugin (on/off)
plugin.enable() -- Enable unclutter
plugin.disable() -- Disable unclutter
plugin.enable() -- Enable unclutter
plugin.disable() -- Disable unclutter
```

Example mappings:
Expand Down

0 comments on commit 515b768

Please sign in to comment.