1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-19 02:17:44 +01:00

83 lines
2.2 KiB
Lua
Raw Normal View History

return {
-- statusline
{
2024-03-08 03:23:37 +01:00
"nvim-lualine/lualine.nvim",
dependencies = {
{
2024-03-08 03:23:37 +01:00
"nvim-tree/nvim-web-devicons",
lazy = true,
},
{
2024-03-08 03:23:37 +01:00
"f-person/git-blame.nvim",
config = function()
vim.g.gitblame_display_virtual_text = 0
2024-03-08 03:23:37 +01:00
end,
},
{ "tiyn/tccs.nvim" },
{
"roobert/action-hints.nvim",
config = function()
require("action-hints").setup({
template = {
2024-03-08 04:03:56 +01:00
-- definition = { text = "D", color = "#add8e6" },
-- references = { text = "R%s", color = "#ff6666" },
definition = { text = Definition_sign, color = "#add8e6" },
references = { text = Reference_sign, color = "#ff6666" },
2024-03-08 03:23:37 +01:00
},
})
end,
},
},
config = function()
2024-03-08 03:23:37 +01:00
require("lualine").setup({
options = {
globalstatus = true,
symbols = {
error = Error_sign,
warn = Warn_sign,
hint = Hint_sign,
2024-03-08 03:23:37 +01:00
info = Info_sign,
},
2024-03-08 03:23:37 +01:00
theme = "tccs",
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
},
sections = {
lualine_b = {
{
2024-03-08 03:23:37 +01:00
require("gitblame").get_current_blame_text,
cond = require("gitblame").is_blame_text_available,
},
},
lualine_c = {},
lualine_x = {
2024-03-08 03:23:37 +01:00
require("action-hints").statusline,
"encoding",
"fileformat",
{
2024-03-08 03:23:37 +01:00
"filetype",
icon_only = true,
},
},
lualine_y = {
{
2024-03-08 03:23:37 +01:00
"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"],
2024-03-08 03:23:37 +01:00
},
},
},
2024-03-08 03:23:37 +01:00
lualine_z = { "progress", "location" },
},
})
2024-03-08 03:23:37 +01:00
end,
},
}