1
0
Fork 0
chezmoi/dot_config/nvim/lua/configs/packages/lualine.lua

43 lines
1.1 KiB
Lua

local M = {
'hoob3rt/lualine.nvim',
dependencies = {
'kyazdani42/nvim-web-devicons'
}
}
function M.config()
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