add heirline statusbar

This commit is contained in:
2024-06-01 19:42:27 +03:00
parent 1d370e6fc4
commit cde06b268f
2 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
return {
{
"lewis6991/gitsigns.nvim",
config = function ()
require('gitsigns').setup()
end
},
{
"rebelot/heirline.nvim",
version = "1.0.*",
dependencies = { "Zeioth/heirline-components.nvim" },
opts = function()
local lib = require("heirline-components.all")
return {
statusline = { -- UI statusbar
hl = { fg = "fg", bg = "bg" },
lib.component.mode(),
lib.component.git_branch(),
lib.component.file_info(),
lib.component.git_diff(),
lib.component.diagnostics(),
lib.component.fill(),
lib.component.cmd_info(),
lib.component.fill(),
lib.component.lsp(),
lib.component.compiler_state(),
lib.component.virtual_env(),
lib.component.nav(),
lib.component.mode { surround = { separator = "right" } },
},
}
end,
config = function(_, opts)
local heirline = require "heirline"
local heirline_components = require "heirline-components.all"
heirline_components.init.subscribe_to_events()
heirline.load_colors(heirline_components.hl.get_colors())
heirline.setup(opts)
end
}
}