feat: added hostname component
This commit is contained in:
parent
a105e96ddc
commit
c171d75797
|
@ -133,6 +133,7 @@ inactive_sections = {
|
|||
* fileformat (file format)
|
||||
* filename
|
||||
* filetype
|
||||
* hostname
|
||||
* location (location in file in line:column format)
|
||||
* mode (vim mode)
|
||||
* progress (%progress in 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
|
Loading…
Reference in New Issue