Add new components

This commit is contained in:
Olivier Roques
2020-12-22 18:50:04 +01:00
parent 778b6b1219
commit 355aacba17
7 changed files with 65 additions and 1 deletions

15
lua/hardline/filetype.lua Normal file
View File

@@ -0,0 +1,15 @@
local vim = vim
local bo = vim.bo
local M = {}
function M.get_filetype()
return bo.filetype
end
function M.get_component()
return table.concat({
[[%{luaeval('require("hardline.filetype").get_filetype()')}]],
})
end
return M