Lsp disable autostart message

There are a lot of framework-specific language servers in the JavaScript ecosystem, so an option to suppress the warning would definitely be appreciated. This is the dumb hack I’m using for now:

local notify = vim.notify
vim.notify = function(msg, ...)
    -- or whatever condition you want to check
    if msg:match("[lspconfig]") then 
        return
    end

    notify(msg, ...)
end
1 Like