lualine: enable tabline
This commit is contained in:
parent
2098afc6c1
commit
632c75c897
1 changed files with 21 additions and 5 deletions
26
init.lua
26
init.lua
|
|
@ -49,7 +49,8 @@ opt.listchars = {
|
||||||
trail = "•",
|
trail = "•",
|
||||||
}
|
}
|
||||||
---- lualine.nvim ----
|
---- lualine.nvim ----
|
||||||
require('lualine').setup({
|
local lualine = require('lualine')
|
||||||
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
component_separators = { left = '│', right = '│' },
|
component_separators = { left = '│', right = '│' },
|
||||||
section_separators = { left = '', right = '' },
|
section_separators = { left = '', right = '' },
|
||||||
|
|
@ -66,8 +67,12 @@ require('lualine').setup({
|
||||||
icons_enabled = false,
|
icons_enabled = false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_z = { 'searchcount', 'progress', 'location' }
|
lualine_z = { 'searchcount', 'progress', 'location' },
|
||||||
}
|
},
|
||||||
|
tabline = {
|
||||||
|
lualine_a = { 'buffers' },
|
||||||
|
lualine_z = { 'tabs' },
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
---- Maps ----
|
---- Maps ----
|
||||||
|
|
@ -486,7 +491,18 @@ require("nvim-web-devicons").setup()
|
||||||
|
|
||||||
---- firenvim
|
---- firenvim
|
||||||
if g.started_by_firenvim == true then
|
if g.started_by_firenvim == true then
|
||||||
g.airline_powerline_fonts = false
|
|
||||||
vim.o.laststatus = 0
|
|
||||||
vim.cmd("packadd firenvim")
|
vim.cmd("packadd firenvim")
|
||||||
|
lualine.setup({
|
||||||
|
sections = {
|
||||||
|
lualine_a = { 'mode' },
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = { 'searchcount' },
|
||||||
|
lualine_y = { 'progress' },
|
||||||
|
lualine_z = { 'location' },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
lualine.hide({
|
||||||
|
place = { 'tabline' }
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue