feat(notify): add notify.threshold (#1693)
* feat: configurable notification level add `notify.threshold` to setup opts * feat: configurable notification level: add threshold example doc * feat: configurable notification level: log always comes last Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -2,12 +2,13 @@ local Marks = require "nvim-tree.marks"
|
||||
local Core = require "nvim-tree.core"
|
||||
local utils = require "nvim-tree.utils"
|
||||
local FsRename = require "nvim-tree.actions.fs.rename-file"
|
||||
local notify = require "nvim-tree.notify"
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.bulk_move()
|
||||
if #Marks.get_marks() == 0 then
|
||||
utils.notify.warn "no bookmark to perform bulk move on, aborting."
|
||||
notify.warn "no bookmark to perform bulk move on, aborting."
|
||||
return
|
||||
end
|
||||
|
||||
@@ -17,7 +18,7 @@ function M.bulk_move()
|
||||
return
|
||||
end
|
||||
if vim.fn.filewritable(location) ~= 2 then
|
||||
utils.notify.warn(location .. " is not writable, cannot move.")
|
||||
notify.warn(location .. " is not writable, cannot move.")
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user