diff options
author | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-13 19:57:19 +0200 |
---|---|---|
committer | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-13 19:57:19 +0200 |
commit | 37c4fc2bf837491313bdc771f92768184929f2eb (patch) | |
tree | 76bd5a7048b52714c70370f9b0a32cfd3a05c688 | |
parent | 79bae9df835eb0f80778b6eb48d0a8096b1580ce (diff) | |
parent | cf6d3fcb657a13dac98b6118df56ae4f28e79a92 (diff) | |
download | minitab.nvim-37c4fc2bf837491313bdc771f92768184929f2eb.tar.xz minitab.nvim-37c4fc2bf837491313bdc771f92768184929f2eb.zip |
Merge branch 'master' of github.com:alvarosevilla95/luatab.nvim
-rw-r--r-- | lua/luatab/init.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua index 6a5f9f9..6f513a6 100644 --- a/lua/luatab/init.lua +++ b/lua/luatab/init.lua @@ -65,11 +65,11 @@ local function formatTab(current) local bufnr = buflist[winnr] local hl = (isSelected and '%#TabLineSel#' or '%#TabLine#') - return hl .. ' ' .. + return hl .. '%' .. current .. 'T' .. ' ' .. tabWindowCount(current) .. tabName(bufnr) .. ' ' .. tabModified(bufnr) .. - tabDevicon(bufnr, isSelected) .. + tabDevicon(bufnr, isSelected) .. '%T' .. tabSeparator(current) end @@ -80,7 +80,11 @@ local function tabline() line = line .. formatTab(i) i = i + 1 end - return line .. '%T%#TabLineFill#%=' + line = line .. '%#TabLineFill#%=' + if vim.fn.tabpagenr('$') > 1 then + line = line .. '%#TabLine#%999XX' + end + return line end local M = { |