2023-05-14 13:40:39 +02:00
|
|
|
---@type LazyPluginSpec[]
|
2023-03-12 02:43:24 +01:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
|
|
|
{
|
|
|
|
"SmiteshP/nvim-navic",
|
2023-06-02 00:41:08 +02:00
|
|
|
dependencies = { "neovim/nvim-lspconfig" },
|
2023-03-12 02:43:24 +01:00
|
|
|
opts = {
|
2023-06-02 00:41:08 +02:00
|
|
|
highlight = true,
|
2023-06-13 07:07:41 +02:00
|
|
|
separator = " ",
|
2023-03-12 02:43:24 +01:00
|
|
|
icons = {
|
|
|
|
File = " ",
|
|
|
|
Module = " ",
|
|
|
|
Namespace = " ",
|
|
|
|
Package = " ",
|
|
|
|
Class = " ",
|
|
|
|
Method = " ",
|
|
|
|
Property = " ",
|
|
|
|
Field = " ",
|
|
|
|
Constructor = " ",
|
|
|
|
Enum = " ",
|
|
|
|
Interface = " ",
|
|
|
|
Function = " ",
|
|
|
|
Variable = " ",
|
|
|
|
Constant = " ",
|
|
|
|
String = " ",
|
|
|
|
Number = " ",
|
|
|
|
Boolean = " ",
|
|
|
|
Array = " ",
|
|
|
|
Object = " ",
|
|
|
|
Key = " ",
|
|
|
|
Null = " ",
|
|
|
|
EnumMember = " ",
|
|
|
|
Struct = " ",
|
|
|
|
Event = " ",
|
|
|
|
Operator = " ",
|
|
|
|
TypeParameter = " ",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
local lualine = require("lualine")
|
2023-06-02 00:41:08 +02:00
|
|
|
lualine.setup({
|
2023-03-12 02:43:24 +01:00
|
|
|
options = {
|
|
|
|
icons_enabled = true,
|
2023-06-02 00:41:08 +02:00
|
|
|
theme = "catppuccin",
|
2023-07-25 15:19:47 +02:00
|
|
|
component_separators = { left = "", right = "" },
|
|
|
|
section_separators = { left = "", right = "" },
|
2023-03-12 02:43:24 +01:00
|
|
|
always_divide_middle = true,
|
|
|
|
globalstatus = true,
|
|
|
|
refresh = {
|
|
|
|
statusline = 1000,
|
|
|
|
tabline = 1000,
|
|
|
|
winbar = 1000,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sections = {
|
2023-06-02 00:41:08 +02:00
|
|
|
lualine_a = { "mode" },
|
2023-06-13 07:07:41 +02:00
|
|
|
lualine_b = { "branch", "diff", "diagnostics" },
|
2023-06-02 00:41:08 +02:00
|
|
|
lualine_c = { "searchcount" },
|
2023-07-25 15:19:47 +02:00
|
|
|
lualine_x = { "filetype" },
|
2023-03-12 02:43:24 +01:00
|
|
|
lualine_y = { "progress" },
|
|
|
|
lualine_z = { "location" },
|
|
|
|
},
|
|
|
|
tabline = {},
|
2023-06-13 07:07:41 +02:00
|
|
|
winbar = {
|
|
|
|
lualine_c = { "navic" },
|
|
|
|
lualine_x = {
|
|
|
|
{
|
|
|
|
function()
|
|
|
|
return " "
|
|
|
|
end,
|
|
|
|
cond = function()
|
|
|
|
local present, navic = pcall(require, "nvim-navic")
|
|
|
|
if not present then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
return navic.is_available()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-03-12 02:43:24 +01:00
|
|
|
inactive_winbar = {},
|
|
|
|
extensions = {},
|
2023-06-02 00:41:08 +02:00
|
|
|
})
|
2023-03-12 02:43:24 +01:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
}
|