Add new components
This commit is contained in:
15
lua/hardline/filetype.lua
Normal file
15
lua/hardline/filetype.lua
Normal 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
|
||||
Reference in New Issue
Block a user