summaryrefslogtreecommitdiff
path: root/dot-config/nvim/plugin/lualine.lua
blob: 79e3805180fe4f23e82deb8c9609e6e02a329372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
vim.pack.add({
	"https://github.com/nvim-lualine/lualine.nvim",
})

local wc = require("wordcount")

local theme = require("my-lualine-theme")

require("lualine").setup({
	options = {
		component_separators = "",
		section_separators = "",
		theme = theme,
	},
	sections = {
		lualine_y = {
			-- Add wordcount
			{ wc.wordcount, cond = wc.is_available },
			-- Existing conf
			"progress",
		},
	},
})

vim.o.cmdheight = 0 -- Puts Lualine at very bottom