Comments (2)
I tried doing removing the separator for tabline:
tabline = {
lualine_a = {
{
"tabs",
separator = "",
mode = 2,
path = 0,
},
},
},
Unfortunately did not work. I guess that's for the entire component, not the separator in between tabs.
from lualine.nvim.
You might be able to give the buffer component it's own explicit separators?
{
"buffers",
-- separators = { left = "", right = "" },
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
}
Alternatively, you could use the process_sections
function from the master/examples/slanted-gaps.lua example theme if you need to modify the separators for all of the components in one of the tabline/statusline sections.
This has been what I have used for while.
---Override separators for all components
---@param sections table
---@return table
local function process_sections(sections)
for _, section in pairs(sections) do
for id, comp in ipairs(section) do
if type(comp) ~= "table" then
comp = { comp }
section[id] = comp
end
comp.component_separators = { left = "", right = "" }
comp.section_separators = { left = "", right = "" }
end
end
return sections
end
If you're using lazy.nvim, you pass this into the config function and overwrite the opts.tabline
table before loading lualine.
config = function(_, opts)
-- NOTE: Modify separators before loading plugin
-- opts.sections = process_sections(opts.sections)
opts.tabline = process_sections(opts.tabline)
require("lualine").setup(opts)
end
from lualine.nvim.
Related Issues (20)
- Bug: (suggestion): remove default filename in command bar when there is one displayed in lualine HOT 1
- Feat: Add harpoon-lualine to Wiki page HOT 1
- Bug: Component conditions not properly evaluation at launch
- Feat: Middle custom options HOT 5
- Bug: User runtime path doesn't have priority on Windows
- Feat: Show tab number by default unless the tab is renamed HOT 1
- Feat: More flexible way to disable lualine or enable extensions
- Bug: flickering / blinking when `globalstatus = true` HOT 1
- docs: typo on wiki HOT 1
- Bug: Icons show white separator HOT 1
- Bug: on_click option not working in components 'buffers' and 'tabs'
- Feat: Ability to use extensions in winbars and tabline
- Question how to not override DAP UI control buttons? HOT 6
- Bug: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
- Bug: globalstatus attribute display error
- Bug: Git diff doesn't work if file name contains spaces
- Feat: Optimize counting of diagnostics with new `vim.diagnostic.count()` (nvim 0.10+)
- Bug: quickfix extension crashes on %
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 lualine.nvim.