current good
This commit is contained in:
104
lua/custom/plugins/lualine.lua
Normal file
104
lua/custom/plugins/lualine.lua
Normal file
@@ -0,0 +1,104 @@
|
||||
-- ============================================================
|
||||
-- LUALINE
|
||||
-- Statusline
|
||||
-- ============================================================
|
||||
|
||||
vim.pack.add {
|
||||
{
|
||||
src = 'https://github.com/nvim-lualine/lualine.nvim',
|
||||
},
|
||||
|
||||
{
|
||||
src = 'https://github.com/nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
}
|
||||
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'onedark',
|
||||
|
||||
icons_enabled = true,
|
||||
|
||||
component_separators = {
|
||||
left = '│',
|
||||
right = '│',
|
||||
},
|
||||
|
||||
section_separators = {
|
||||
left = '',
|
||||
right = '',
|
||||
},
|
||||
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
|
||||
ignore_focus = {},
|
||||
|
||||
always_divide_middle = true,
|
||||
|
||||
globalstatus = true,
|
||||
|
||||
refresh = {
|
||||
statusline = 100,
|
||||
tabline = 100,
|
||||
winbar = 100,
|
||||
},
|
||||
},
|
||||
|
||||
sections = {
|
||||
lualine_a = { {
|
||||
'mode',
|
||||
upper = true,
|
||||
} },
|
||||
|
||||
lualine_b = {
|
||||
'branch',
|
||||
'diff',
|
||||
'diagnostics',
|
||||
},
|
||||
|
||||
lualine_c = {
|
||||
{
|
||||
'filename',
|
||||
path = 1,
|
||||
},
|
||||
},
|
||||
|
||||
lualine_x = {
|
||||
{
|
||||
'encoding',
|
||||
show_bomb = true,
|
||||
},
|
||||
|
||||
'fileformat',
|
||||
'filetype',
|
||||
},
|
||||
|
||||
lualine_y = {
|
||||
'progress',
|
||||
},
|
||||
|
||||
lualine_z = {
|
||||
'location',
|
||||
},
|
||||
},
|
||||
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'location' },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
|
||||
extensions = {
|
||||
'trouble',
|
||||
'quickfix',
|
||||
'fzf',
|
||||
'lazy',
|
||||
'mason',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user