38 lines
1 KiB
Lua
38 lines
1 KiB
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
local navic = require('nvim-navic')
|
|
require 'lualine'.setup {
|
|
options = {
|
|
icons_enabled = true,
|
|
theme = vim.env.TERM ~= 'linux' and 'gruvbox' or nil,
|
|
component_separators = { '', '' },
|
|
section_separators = { '', '' },
|
|
disabled_filetypes = {}
|
|
},
|
|
sections = {
|
|
lualine_a = { 'mode' },
|
|
lualine_b = { 'branch' },
|
|
lualine_c = { { 'filename', path = 1 } },
|
|
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
|
lualine_y = { 'progress' },
|
|
lualine_z = { 'location' }
|
|
},
|
|
inactive_sections = {
|
|
lualine_a = {},
|
|
lualine_b = {},
|
|
lualine_c = { { 'filename', path = 1 } },
|
|
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
|
lualine_y = { 'progress' },
|
|
lualine_z = { 'location' }
|
|
},
|
|
tabline = {},
|
|
winbar = {
|
|
lualine_c = { { navic.get_location, cond = navic.is_available } },
|
|
},
|
|
inactive_winbar = {},
|
|
extensions = { 'neo-tree' }
|
|
}
|
|
end
|
|
|
|
return M
|