add heirline statusbar
This commit is contained in:
43
lua/crentist/lazy/heirline.lua
Normal file
43
lua/crentist/lazy/heirline.lua
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user