AutoYADM commit: 2024-11-26 13:45:02
This commit is contained in:
parent
4ec90ea2a1
commit
90a7369bc2
1 changed files with 15 additions and 6 deletions
|
@ -1,12 +1,20 @@
|
||||||
-- local noirbuddy_lualine = require("noirbuddy.plugins.lualine")
|
|
||||||
local function getWords()
|
local function getWords()
|
||||||
local wc = vim.api.nvim_eval("wordcount()")
|
local wc = vim.api.nvim_eval("wordcount()")
|
||||||
|
local w = "w:"
|
||||||
if wc["visual_words"] then
|
if wc["visual_words"] then
|
||||||
return wc["visual_words"]
|
return w .. wc["visual_words"]
|
||||||
else
|
else
|
||||||
return wc["words"]
|
return w .. wc["words"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local sections = {
|
||||||
|
lualine_a = { "mode" },
|
||||||
|
lualine_b = { "branch", "diff" },
|
||||||
|
lualine_c = { { "filename", path = 1 } },
|
||||||
|
lualine_x = { "diagnostics", { "filetype", colored = false }, { getWords } },
|
||||||
|
lualine_y = { "progress" },
|
||||||
|
lualine_z = { "location" },
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
@ -15,14 +23,15 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local noirbuddy_lualine = require("noirbuddy.plugins.lualine")
|
local noirbuddy_lualine = require("noirbuddy.plugins.lualine")
|
||||||
local theme = noirbuddy_lualine.theme
|
local theme = noirbuddy_lualine.theme
|
||||||
local sections = noirbuddy_lualine.sections
|
local nb_inactive_sections = noirbuddy_lualine.inactive_sections
|
||||||
local inactive_sections = noirbuddy_lualine.inactive_sections
|
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
theme = theme,
|
theme = theme,
|
||||||
|
-- section_separators = { left = "", right = "" },
|
||||||
|
-- component_separators = { left = "", right = "" },
|
||||||
},
|
},
|
||||||
sections = sections,
|
sections = sections,
|
||||||
inactive_sections = inactive_sections,
|
inactive_sections = nb_inactive_sections,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue