Skip to content

Commit

Permalink
perf(lsp-progress.nvim): use pattern for lsp-progress event (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Oct 6, 2023
1 parent 09e2135 commit c916161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/configs/nvim-lualine/lualine-nvim/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ require("lualine").setup(config)

-- listen to lsp-progress event and refresh
vim.api.nvim_create_augroup("lualine_augroup", { clear = true })
vim.api.nvim_create_autocmd("User LspProgressStatusUpdated", {
vim.api.nvim_create_autocmd("User", {
group = "lualine_augroup",
pattern = "LspProgressStatusUpdated",
callback = require("lualine").refresh,
})

0 comments on commit c916161

Please sign in to comment.