neovim: statusbar
This commit is contained in:
parent
0a8939caa4
commit
c0082c8a42
1 changed files with 29 additions and 27 deletions
|
@ -1,33 +1,35 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
require 'lualine'.setup {
|
require 'lualine'.setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = vim.env.TERM ~= 'linux' and 'gruvbox' or nil,
|
theme = vim.env.TERM ~= 'linux' and 'gruvbox' or nil,
|
||||||
component_separators = { '', '' },
|
component_separators = { '', '' },
|
||||||
section_separators = { '', '' },
|
section_separators = { '', '' },
|
||||||
disabled_filetypes = {}
|
disabled_filetypes = {}
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { 'mode' },
|
lualine_a = { 'mode' },
|
||||||
lualine_b = { 'branch' },
|
lualine_b = { 'branch' },
|
||||||
lualine_c = { { 'filename', path = 1 } },
|
lualine_c = { { 'filename', path = 1 } },
|
||||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||||
lualine_y = { 'progress' },
|
lualine_y = { 'progress' },
|
||||||
lualine_z = { 'location' }
|
lualine_z = { 'location' }
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = { { 'filename' } },
|
lualine_c = { { 'filename', path = 1 } },
|
||||||
lualine_x = { 'location' },
|
lualine_x = { 'location' },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {}
|
lualine_z = {}
|
||||||
},
|
},
|
||||||
tabline = {},
|
tabline = {},
|
||||||
extensions = { 'nerdtree' }
|
winbar = {},
|
||||||
}
|
inactive_winbar = {},
|
||||||
|
extensions = { 'neo-tree' }
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Add table
Reference in a new issue