Add whitespace part

This commit is contained in:
Olivier Roques
2020-12-25 13:34:35 +01:00
parent d58c7a56cd
commit 7d868514cd
9 changed files with 107 additions and 29 deletions

View File

@@ -1,3 +1,5 @@
local cmd, fn, vim = vim.cmd, vim.fn, vim
local g = vim.g
local M = {
modes = {
['?'] = {text = '???', color = 'inactive'},
@@ -16,13 +18,13 @@ local M = {
}
function M.echo(hlgroup, msg)
vim.cmd(string.format('echohl %s', hlgroup))
vim.cmd(string.format('echo "[hardline] %s"', msg))
vim.cmd('echohl None')
cmd(string.format('echohl %s', hlgroup))
cmd(string.format('echo "[hardline] %s"', msg))
cmd('echohl None')
end
function M.is_active()
return vim.g.statusline_winid == vim.fn.win_getid()
return g.statusline_winid == fn.win_getid()
end
return M