parent
69b5351147
commit
20a87ac78c
|
@ -28,11 +28,11 @@ local config = {
|
|||
extensions = {},
|
||||
}
|
||||
|
||||
local function check_sep_format_deprication(sep)
|
||||
local function check_sep_format_deprecation(sep)
|
||||
if type(sep) == 'table' and vim.tbl_islist(sep) then
|
||||
require('lualine.utils.notices').add_persistent_notice(string.format [[
|
||||
### option.separator
|
||||
Using list for configuring separators has been depricated. Please configure it
|
||||
Using list for configuring separators has been deprecated. Please configure it
|
||||
with {left = left_sep, right = right_sep} like table.
|
||||
]])
|
||||
sep = { left = sep[1], right = sep[2] or sep[1] }
|
||||
|
@ -46,7 +46,7 @@ local function fix_separators(separators)
|
|||
if type(separators) == 'string' then
|
||||
return { left = separators, right = separators }
|
||||
else
|
||||
return check_sep_format_deprication(separators)
|
||||
return check_sep_format_deprecation(separators)
|
||||
end
|
||||
end
|
||||
return separators
|
||||
|
|
|
@ -52,6 +52,7 @@ function M.show_notices()
|
|||
notice = vim.list_extend(notice, vim.tbl_flatten(notices))
|
||||
vim.fn.append(0, notice)
|
||||
vim.api.nvim_win_set_cursor(0, { 1, 0 })
|
||||
vim.bo.modifiable=false
|
||||
end
|
||||
|
||||
function M.clear_notices()
|
||||
|
|
Loading…
Reference in New Issue