fix cmp blinking notifications
This commit is contained in:
@@ -12,13 +12,13 @@ ac("TextYankPost", {
|
||||
end,
|
||||
})
|
||||
|
||||
ac("LspAttach", {
|
||||
desc = "Notify user about attached LSP clients",
|
||||
group = aug("LSPOnAttach", { clear = true }),
|
||||
callback = function(event)
|
||||
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||
if client then
|
||||
vim.notify(client.name .. " attached", vim.log.levels.INFO, {})
|
||||
end
|
||||
end,
|
||||
})
|
||||
-- ac("LspAttach", {
|
||||
-- desc = "Notify user about attached LSP clients",
|
||||
-- group = aug("LSPOnAttach", { clear = true }),
|
||||
-- callback = function(event)
|
||||
-- local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||
-- if client then
|
||||
-- vim.notify(client.name .. " attached", vim.log.levels.INFO, {})
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
Reference in New Issue
Block a user