60 lines
1.7 KiB
Lua
60 lines
1.7 KiB
Lua
return {
|
|
"nvim-lualine/lualine.nvim",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
config = function()
|
|
local lualine = require("lualine")
|
|
local lazy_status = require("lazy.status") -- to configure lazy pending updates count
|
|
|
|
lualine.setup({
|
|
options = {
|
|
theme = "dracula",
|
|
},
|
|
sections = {
|
|
lualine_x = {
|
|
-- {
|
|
-- require("noice").api.status.message.get_hl,
|
|
-- cond = require("noice").api.status.message.has,
|
|
-- },
|
|
{
|
|
require("noice").api.status.command.get,
|
|
cond = require("noice").api.status.command.has,
|
|
color = { fg = "#ff9e64" },
|
|
},
|
|
{
|
|
require("noice").api.status.mode.get,
|
|
cond = require("noice").api.status.mode.has,
|
|
color = { fg = "#ff9e64" },
|
|
},
|
|
{
|
|
require("noice").api.status.search.get,
|
|
cond = require("noice").api.status.search.has,
|
|
color = { fg = "#ff9e64" },
|
|
},
|
|
{
|
|
lazy_status.updates,
|
|
cond = lazy_status.has_updates,
|
|
color = { fg = "#ff9e64" },
|
|
},
|
|
},
|
|
lualine_c = {
|
|
{
|
|
-- Customize the filename part of lualine to be parent/filename
|
|
"filename",
|
|
file_status = true, -- Displays file status (readonly status, modified status)
|
|
newfile_status = false, -- Display new file status (new file means no write after created)
|
|
path = 4, -- 0: Just the filename
|
|
-- 1: Relative path
|
|
-- 2: Absolute path
|
|
-- 3: Absolute path, with tilde as the home directory
|
|
-- 4: Filename and parent dir, with tilde as the home directory
|
|
symbols = {
|
|
modified = "[+]", -- Text to show when the file is modified.
|
|
readonly = "[-]", -- Text to show when the file is non-modifiable or readonly.
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|