Skip to content

Commit

Permalink
Update bufferline layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonllera committed Nov 28, 2021
1 parent 4d09909 commit bf96e61
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions lua/plugins/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ require('lualine').setup({
options = {
theme = "tokyonight",
-- Separators might look weird for certain fonts (eg Cascadia)
-- component_separators = {left = '', right = ''},
-- section_separators = {left = '', right = ''},
component_separators = {left = '', right = ''},
section_separators = {left = '', right = ''},
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff'},
lualine_c = {'filename'},
lualine_x = {
{
'diagnostics',
sources = {'nvim_lsp'},
sections = {'error', 'warn', 'info'},
-- symbols = {error = 'x', warn = '!', info = '?'},
},
lualine_c = {
'filetype',
{
function()
local msg = 'No LSP'
Expand All @@ -28,6 +22,13 @@ require('lualine').setup({
return msg
end

-- Check for utility buffers
for ft in {'fugitive'} do
if buf_ft == ft then
return ''
end
end

for _, client in ipairs(clients) do
local filetypes = client.config.filetypes

Expand All @@ -42,9 +43,17 @@ require('lualine').setup({
color = {fg = '#ffffff', gui = 'bold'},
separator = "",
},
'filetype',
{
'diagnostics',
sources = {'nvim_lsp'},
sections = {'error', 'warn', 'info'},
},
},
lualine_x = {'encoding'},
lualine_y = {'progress'},
lualine_z = {'location'},
lualine_z = {
{function () return '' end},
{'location'},
}
},
})

0 comments on commit bf96e61

Please sign in to comment.