add word count to lualine
This commit is contained in:
parent
609f11ab7d
commit
d95f9c969d
|
@ -3,6 +3,7 @@ return {
|
|||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
config = function()
|
||||
local prose = require("nvim-prose")
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
|
@ -26,8 +27,11 @@ return {
|
|||
lualine_a = { "mode", "vim.g.cmptoggle and 'cmp'", "branch" },
|
||||
lualine_b = { "vim.g.cwdShortened", "diff", "diagnostics" },
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = {},
|
||||
lualine_y = { "filetype" },
|
||||
lualine_x = {
|
||||
{ prose.word_count, cond = prose.is_available },
|
||||
{ prose.reading_time, cond = prose.is_available },
|
||||
},
|
||||
lualine_y = { "vim.b.word_count", "filetype" },
|
||||
lualine_z = {
|
||||
--"vim.g.cwdShortened"
|
||||
-- "datetime",
|
||||
|
|
Loading…
Reference in New Issue