mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
69 lines
1.7 KiB
1 year ago
|
return {
|
||
|
-- statusline
|
||
|
{
|
||
|
'nvim-lualine/lualine.nvim',
|
||
|
dependencies = {
|
||
|
{
|
||
|
'nvim-tree/nvim-web-devicons',
|
||
|
lazy = true
|
||
|
},
|
||
|
{
|
||
|
'f-person/git-blame.nvim',
|
||
|
config = function()
|
||
|
vim.g.gitblame_display_virtual_text = 0
|
||
|
end
|
||
|
},
|
||
|
{ 'tiyn/tccs.nvim' },
|
||
|
},
|
||
|
config = function()
|
||
|
require('lualine').setup({
|
||
|
options = {
|
||
|
globalstatus = true,
|
||
|
symbols = {
|
||
|
error = Error_sign,
|
||
|
warn = Warn_sign,
|
||
|
hint = Hint_sign,
|
||
|
info = Info_sign
|
||
|
},
|
||
|
theme = 'tccs',
|
||
|
component_separators = { left = '', right = '' },
|
||
|
section_separators = { left = '', right = '' }
|
||
|
},
|
||
|
sections = {
|
||
|
lualine_b = {
|
||
|
{
|
||
|
require('gitblame').get_current_blame_text,
|
||
|
cond = require('gitblame').is_blame_text_available
|
||
|
}
|
||
|
},
|
||
|
lualine_c = {},
|
||
|
lualine_x = {
|
||
|
'encoding',
|
||
|
'fileformat',
|
||
|
{
|
||
|
'filetype',
|
||
|
icon_only = true
|
||
|
}
|
||
|
},
|
||
|
lualine_y = {
|
||
|
{
|
||
|
'filename',
|
||
|
file_status = true,
|
||
|
newfile_status = true,
|
||
|
path = 1,
|
||
|
shorting_target = 50,
|
||
|
symbols = {
|
||
|
modified = Lualine_signs["modified"],
|
||
|
readonly = Lualine_signs["readonly"],
|
||
|
unnamed = Lualine_signs["unnamed"],
|
||
|
newfile = Lualine_signs["newfile"],
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
lualine_z = { 'progress', 'location' },
|
||
|
}
|
||
|
})
|
||
|
end
|
||
|
}
|
||
|
}
|