From dbbd9cbf44ac5f120dc8ec9c39179c690a1afdda Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 3 Oct 2024 04:43:34 -0500 Subject: [PATCH] fix(nvim): do not let duplicate notifs for same lsp server show --- users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua index a1880eb8..8d5372e0 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -293,8 +293,9 @@ return { local last_clients = {} db_timer:start( 100, - 100, + 0, vim.schedule_wrap(function() + db_timer:stop() local cur_clients = vim.lsp.get_clients({ bufnr = bufnr }) if #cur_clients > #last_clients then last_clients = cur_clients @@ -311,7 +312,6 @@ return { vim.bo[vim.api.nvim_win_get_buf(win)].filetype = "markdown" end, }) - db_timer:stop() end) ) end