docs(README): use `ModeChanged` for `lualine`

pull/20/head
Iron-E 1 year ago
parent caf4bad7f8
commit 165d834f68
No known key found for this signature in database
GPG Key ID: 83A6AEB40395D40D

@ -115,12 +115,9 @@ local MODE_HL_GROUP = 'LualineViMode'
   
--[[/* FELINE CONFIG */]] --[[/* FELINE CONFIG */]]
   
vim.api.nvim_create_autocmd('User', { vim.api.nvim_create_autocmd('ModeChanged', {callback = function()
callback = function()
require('lualine').refresh {scope = 'window', place = {'statusline'}} require('lualine').refresh {scope = 'window', place = {'statusline'}}
end, end})
pattern = {'LibmodalModeEnterPre', 'LibmodalModeLeavePost'},
})
   
require('lualine').setup {sections = {lualine_a = {{ require('lualine').setup {sections = {lualine_a = {{
function() -- auto change color according the vim mode function() -- auto change color according the vim mode

Loading…
Cancel
Save