1439ba6d37
Important: It's no longer guaranteed that if component/extension of same name exists in multiple entries in rtp which one will be loaded. The guarantee is still there for themes . Means other plugins or users config can overwrite a lualines internal theme with same file name . I'm droping the guarantee for components and extensions because there isn't much usecase for it . It's simple to have a unique name and droping that guarantee allows more optimizations that speeds up lualine.
10 lines
278 B
Lua
10 lines
278 B
Lua
-- Copyright (c) 2020-2021 hoob3rt
|
|
-- MIT license, see LICENSE for more details.
|
|
local require = require'lualine_require'.require
|
|
local Mode = require('lualine.component'):new()
|
|
local get_mode = require('lualine.utils.mode').get_mode
|
|
|
|
Mode.update_status = get_mode
|
|
|
|
return Mode
|