aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2021-11-25 20:06:42 +0100
committerGitHub <noreply@github.com>2021-11-25 20:06:42 +0100
commit72d62aa6aa274835aebee9e78dd9b05eef4e5039 (patch)
tree38a40d8b5af93a7beb1a0ef3337ebfdc8de674c5 /src/nvim/lua/vim.lua
parent150a5922aae3ed02c9f4eee7e5f162454c42231c (diff)
downloadrneovim-72d62aa6aa274835aebee9e78dd9b05eef4e5039.tar.gz
rneovim-72d62aa6aa274835aebee9e78dd9b05eef4e5039.tar.bz2
rneovim-72d62aa6aa274835aebee9e78dd9b05eef4e5039.zip
chore(docs): clarify vim.notify log_level parameter (#16436)
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r--src/nvim/lua/vim.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua
index 30c7034209..ad886b40dd 100644
--- a/src/nvim/lua/vim.lua
+++ b/src/nvim/lua/vim.lua
@@ -323,6 +323,7 @@ end
do
local validate = vim.validate
+ --@private
local function make_dict_accessor(scope, handle)
validate {
scope = {scope, 's'};
@@ -422,11 +423,10 @@ end
---
--- Without a runtime, writes to :Messages
---@see :help nvim_notify
----@param msg Content of the notification to show to the user
----@param log_level Optional log level
----@param opts Dictionary with optional options (timeout, etc)
-function vim.notify(msg, log_level, _opts)
-
+---@param msg string Content of the notification to show to the user
+---@param log_level number|nil enum from vim.log.levels
+---@param opts table|nil additional options (timeout, etc)
+function vim.notify(msg, log_level, opts) -- luacheck: no unused
if log_level == vim.log.levels.ERROR then
vim.api.nvim_err_writeln(msg)
elseif log_level == vim.log.levels.WARN then