* stylua -> EmmyLuaCodeStyle: config and doc * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle: call_arg_parentheses = always * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle
This commit is contained in:
committed by
GitHub
parent
9650e735ba
commit
1ae1c33ce1
@@ -9,9 +9,9 @@ local title_support
|
||||
---@return boolean
|
||||
function M.supports_title()
|
||||
if title_support == nil then
|
||||
title_support = (package.loaded.notify and (vim.notify == require "notify" or vim.notify == require("notify").notify))
|
||||
title_support = (package.loaded.notify and (vim.notify == require("notify") or vim.notify == require("notify").notify))
|
||||
or (package.loaded.noice and (vim.notify == require("noice").notify or vim.notify == require("noice.source.notify").notify))
|
||||
or (package.loaded.notifier and require("notifier.config").has_component "nvim")
|
||||
or (package.loaded.notifier and require("notifier.config").has_component("nvim"))
|
||||
or false
|
||||
end
|
||||
|
||||
@@ -21,8 +21,8 @@ end
|
||||
local modes = {
|
||||
{ name = "trace", level = vim.log.levels.TRACE },
|
||||
{ name = "debug", level = vim.log.levels.DEBUG },
|
||||
{ name = "info", level = vim.log.levels.INFO },
|
||||
{ name = "warn", level = vim.log.levels.WARN },
|
||||
{ name = "info", level = vim.log.levels.INFO },
|
||||
{ name = "warn", level = vim.log.levels.WARN },
|
||||
{ name = "error", level = vim.log.levels.ERROR },
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ do
|
||||
vim.schedule(function()
|
||||
if not M.supports_title() then
|
||||
-- add title to the message, with a newline if the message is multiline
|
||||
msg = string.format("[NvimTree]%s%s", (msg:match "\n" and "\n" or " "), msg)
|
||||
msg = string.format("[NvimTree]%s%s", (msg:match("\n") and "\n" or " "), msg)
|
||||
end
|
||||
|
||||
vim.notify(msg, level, { title = "NvimTree" })
|
||||
|
||||
Reference in New Issue
Block a user