From e54c1a6f48c5dee436750214836e3ba84f46b60f Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Sun, 28 May 2023 01:15:17 -0500 Subject: [PATCH] fix(autocmds): winbar not updated in time in insert mode --- README.md | 10 ++++++---- doc/dropbar.txt | 5 +++-- lua/dropbar/configs.lua | 5 +++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fae2ef8d..e1eaf2c0 100644 --- a/README.md +++ b/README.md @@ -164,11 +164,12 @@ https://github.com/Bekaboo/dropbar.nvim/assets/76579810/e8c1ac26-0321-4762-9975- and not vim.wo[win].diff end, update_events = { - 'CursorHold', - 'CursorHoldI', + 'CursorMoved', + 'CursorMovedI', 'DirChanged', 'FileChangedShellPost', 'TextChanged', + 'TextChangedI', 'VimResized', 'WinResized', 'WinScrolled', @@ -486,11 +487,12 @@ general behavior of the plugin: - Default: ```lua { - 'CursorHold', - 'CursorHoldI', + 'CursorMoved', + 'CursorMovedI', 'DirChanged', 'FileChangedShellPost', 'TextChanged', + 'TextChangedI', 'VimResized', 'WinResized', 'WinScrolled', diff --git a/doc/dropbar.txt b/doc/dropbar.txt index e1e3ff12..dcb76580 100644 --- a/doc/dropbar.txt +++ b/doc/dropbar.txt @@ -160,11 +160,12 @@ behavior of the plugin: - Default: >lua { - 'CursorHold', - 'CursorHoldI', + 'CursorMoved', + 'CursorMovedI', 'DirChanged', 'FileChangedShellPost', 'TextChanged', + 'TextChangedI', 'VimResized', 'WinResized', 'WinScrolled', diff --git a/lua/dropbar/configs.lua b/lua/dropbar/configs.lua index cdb1f439..cd8275ec 100644 --- a/lua/dropbar/configs.lua +++ b/lua/dropbar/configs.lua @@ -11,11 +11,12 @@ M.opts = { and not vim.wo[win].diff end, update_events = { - 'CursorHold', - 'CursorHoldI', + 'CursorMoved', + 'CursorMovedI', 'DirChanged', 'FileChangedShellPost', 'TextChanged', + 'TextChangedI', 'VimResized', 'WinResized', 'WinScrolled',