neovim: add winbar in lualine config
This commit is contained in:
@@ -72,14 +72,10 @@ local diff = {
|
|||||||
|
|
||||||
local tabs = {
|
local tabs = {
|
||||||
"tabs",
|
"tabs",
|
||||||
mode = 1,
|
mode = 2,
|
||||||
}
|
tabs_color = {
|
||||||
|
active = "lualine_a_normal",
|
||||||
local windows = {
|
inactive = "lualine_a_inactive",
|
||||||
"windows",
|
|
||||||
disabled_buftypes = { "nofile" },
|
|
||||||
filetype_names = {
|
|
||||||
NvimTree = "File Tree",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,15 +84,22 @@ lualine.setup({
|
|||||||
component_separators = "",
|
component_separators = "",
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
|
disabled_filetypes = {
|
||||||
|
winbar = {
|
||||||
|
"NvimTree",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
tabline = {
|
winbar = {
|
||||||
lualine_a = { tabs },
|
lualine_a = { filename },
|
||||||
lualine_z = { windows },
|
},
|
||||||
|
inactive_winbar = {
|
||||||
|
lualine_a = { filename },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
lualine_b = { branch },
|
lualine_b = { branch },
|
||||||
lualine_c = { diagnostics },
|
lualine_c = { diagnostics, tabs },
|
||||||
lualine_x = { diff, location, tabstop, fileformat },
|
lualine_x = { diff, location, tabstop, fileformat },
|
||||||
lualine_y = { filename },
|
lualine_y = { filename },
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ opt.cursorline = true
|
|||||||
opt.clipboard = "unnamedplus"
|
opt.clipboard = "unnamedplus"
|
||||||
opt.signcolumn = "yes"
|
opt.signcolumn = "yes"
|
||||||
opt.fillchars:append({ eob = " " })
|
opt.fillchars:append({ eob = " " })
|
||||||
opt.showtabline = 2
|
opt.showtabline = 0
|
||||||
opt.showcmd = false
|
opt.showcmd = false
|
||||||
opt.guicursor = "a:block,i:ver25"
|
opt.guicursor = "a:block,i:ver25"
|
||||||
opt.fileformat = "unix"
|
opt.fileformat = "unix"
|
||||||
|
|||||||
Reference in New Issue
Block a user