2021-02-13 00:03:57 +00:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
|
|
|
|
2021-01-04 01:14:29 +00:00
|
|
|
local function fzf_statusline()
|
2020-12-30 14:48:51 +00:00
|
|
|
vim.cmd([[hi clear fzf1]])
|
|
|
|
vim.cmd([[hi link fzf1 lualine_a_normal]])
|
|
|
|
vim.cmd([[hi clear fzf2]])
|
|
|
|
vim.cmd([[hi link fzf2 lualine_c_normal]])
|
|
|
|
return ([[%#fzf1# FZF %#fzf2#]])
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2021-01-04 01:14:29 +00:00
|
|
|
local function load_extension()
|
|
|
|
_G.fzf_statusline = fzf_statusline
|
|
|
|
vim.cmd(([[autocmd! User FzfStatusLine setlocal statusline=%!v:lua.fzf_statusline()]]))
|
2020-12-30 14:48:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
2021-01-04 01:14:29 +00:00
|
|
|
load_extension = load_extension
|
2020-12-30 14:48:51 +00:00
|
|
|
}
|