Comments (5)
You can put a separator in the front of the components array.
Could you be a bit more specific?
Do you mind I covert this issue to a discussion? I think this may be helping other users.
I think that's a great idea :D
from tabby.nvim.
Yes, you can set a buffer line by tabby.nvim. But you can only use low level API to make it, because the layout of high level is fixed. Here is a simple example:
local components = function()
local coms = {}
local cur_bufid = vim.api.nvim_get_current_buf()
for _, bufid in ipairs(vim.api.nvim_list_bufs()) do
if vim.api.nvim_buf_is_valid(bufid) and vim.bo[bufid].buflisted then
local hl = 'TabLine'
if bufid == cur_bufid then
hl = 'TabLineSel'
end
local buf_name = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(bufid), ':~:.')
table.insert(coms, {
type = 'text',
text = {
string.format(' %d: %s ', bufid, buf_name),
hl = hl,
},
})
table.insert(coms, {
type = 'text',
text = {
' ',
hl = 'TabLineFill',
},
})
end
end
return coms
end
require('tabby').setup({
components = components,
})
from tabby.nvim.
But for now, the customer handler of mouse click not implemented(in TODO list). So cannot click buffer label to switch buffer yet.
from tabby.nvim.
How could I put the buffers at the tail of my config?
from tabby.nvim.
You can put a separator in the front of the components array.
{ type = "spring" }
and the buffer labels will be pushed to the end.
Do you mind I covert this issue to a discussion? I think this may be helping other users.
from tabby.nvim.
Related Issues (20)
- Tabline Background Seems Corrupted HOT 6
- Changing colorscheme without restarting causes inconsistent highlighting HOT 4
- Add option to use lualine compatiable theme HOT 1
- Support customer mouse handler
- refactor doc
- [Bug] Not finding tabby modules HOT 7
- Missing guibg HOT 1
- Highlighting problem: hi <group> cleared does not exists HOT 1
- Custom tab names don't persist across sessions HOT 17
- Function name does not match script file name: Tabby#RenderTabline HOT 1
- The tab icon is incorrect HOT 1
- Is there any way to toggle the plugin on and off? HOT 2
- In the preset, the color of the tab and the border color are inconsistent
- Backwards compatibility HOT 5
- Add buffer filter HOT 6
- Weird redraw issue when entering command mode HOT 4
- Add option to choose truncate mode HOT 5
- Why it's `win.buf().id` not `win.buf.id`? HOT 2
- It seems that the `line.spacer()` doesn't work correctly HOT 3
- Is it possible to assign a name when creating a new tab? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabby.nvim.