local function getWords() return tostring(vim.fn.wordcount().words) end require('lualine').setup { sections = { lualine_z = { getWords }, }, }