feat: added hostname component

This commit is contained in:
hoob3rt 2021-03-22 15:17:27 +01:00
parent a105e96ddc
commit c171d75797
2 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,7 @@ inactive_sections = {
* fileformat (file format) * fileformat (file format)
* filename * filename
* filetype * filetype
* hostname
* location (location in file in line:column format) * location (location in file in line:column format)
* mode (vim mode) * mode (vim mode)
* progress (%progress in file) * progress (%progress in file)

View File

@ -0,0 +1,8 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function hostname()
local data = vim.loop.os_gethostname()
return data
end
return hostname