Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop lualine from flickering when selecting options in the coc menu? #1313

Closed
2 tasks done
skamsie opened this issue Oct 21, 2024 · 9 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@skamsie
Copy link

skamsie commented Oct 21, 2024

Self Checks

  • I'm using the latest lualine.
  • I didn't find the issue in existing issues or PRs.

Each time I navigate through the coc menu with Ctrl-P Ctrl-N my status line flickers. I can see it is because with each movement in the coc menu it briefly enters command mode so the status line updates from 'normal' to 'command' and viceversa... Is there a way to prevent this?

I am coming from a vim config where I was using the vim-airline plugin and this does not happen...

377600476-64ebb085-5d47-432d-8368-541a6bb2f80d.mov
@skamsie skamsie added the bug Something isn't working label Oct 21, 2024
@shadmansaleh
Copy link
Member

Can you check if #1316 fixes the flickering?

@skamsie
Copy link
Author

skamsie commented Nov 1, 2024

@shadmansaleh thanks for trying to fix, but unfortunately it does not fix it for me, the behaviour is exactly the same. Not only that, but it seems to have a weird side effect as well: I can briefly see the default vim start screen before seeing my 'alpha' start screen, something that does not happen with master branch

@shadmansaleh
Copy link
Member

ok I'll look at it later then. It_ would be better if you could provide e minimal config. Setting up coc.nvim to test this is annoying since I don't use it myself.

@skamsie
Copy link
Author

skamsie commented Nov 1, 2024

it reproduces with the defaults (assuming lazy):

~/config/nvim/lua/plugins/coc.lua

-- in case of error
-- :call coc#util#install()
return {
  'neoclide/coc.nvim',
  config = function()
    vim.g.coc_global_extensions = { 'coc-lua' }
  end
}

~/.config/nvim/coc-settings.json

{
  "suggest.minTriggerInputLength": 2,
  "suggest.snippetIndicator": ">",
  "diagnostic.enable": true,
  "inlayHint.enable": false,
  "Lua.diagnostics.globals": ["vim"]
}

@shadmansaleh
Copy link
Member

Try out #1316 again. I think this should be fixed now.

@skamsie
Copy link
Author

skamsie commented Nov 1, 2024

@shadmansaleh this seems to finally fix it, but the side effect I mentioned is still there 😅

@shadmansaleh
Copy link
Member

I've never been able to reproduce that side effect on my side. I think we can avoid the debounce now with autocommand refresh getting removed.

see if it works correctly now for you.

@skamsie
Copy link
Author

skamsie commented Nov 1, 2024

I've never been able to reproduce that side effect on my side

might be something else in my config then... thanks for fixing

@shadmansaleh
Copy link
Member

fixed in #1316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants