aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-12-08 01:39:41 -0500
committerJustin M. Keyes <justinkz@gmail.com>2025-12-15 13:55:15 -0500
commit31dfecb458308cd07770af596b4aa36f44ff7d08 (patch)
tree24fd4b4eca3e60186bd77b7b25f7d542d3657c4d /runtime/lua/vim
parent8165427b4d92e55be5644bdf9270eb49b99d6dcc (diff)
downloadrneovim-31dfecb458308cd07770af596b4aa36f44ff7d08.tar.gz
rneovim-31dfecb458308cd07770af596b4aa36f44ff7d08.tar.bz2
rneovim-31dfecb458308cd07770af596b4aa36f44ff7d08.zip
docs: misc, editorconfig
fix https://github.com/neovim/neovim/issues/36858
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_meta/builtin.lua9
-rw-r--r--runtime/lua/vim/lsp/health.lua4
-rw-r--r--runtime/lua/vim/shared.lua1
3 files changed, 9 insertions, 5 deletions
diff --git a/runtime/lua/vim/_meta/builtin.lua b/runtime/lua/vim/_meta/builtin.lua
index 80524ab148..93e0e273b8 100644
--- a/runtime/lua/vim/_meta/builtin.lua
+++ b/runtime/lua/vim/_meta/builtin.lua
@@ -94,11 +94,12 @@ function vim.empty_dict() end
--- @param ...? any
function vim.rpcnotify(channel, method, ...) end
---- Sends a request to {channel} to invoke {method} via |RPC| and blocks until
---- a response is received.
+--- Invokes |RPC| `method` on `channel` and blocks until a response is received.
+---
+--- Note: Msgpack NIL values in the response are represented as |vim.NIL|.
+---
+--- Example: see [nvim_exec_lua()]
---
---- Note: NIL values as part of the return value is represented as |vim.NIL|
---- special value
--- @param channel integer
--- @param method string
--- @param ...? any
diff --git a/runtime/lua/vim/lsp/health.lua b/runtime/lua/vim/lsp/health.lua
index 17f2a81139..d84e27d13a 100644
--- a/runtime/lua/vim/lsp/health.lua
+++ b/runtime/lua/vim/lsp/health.lua
@@ -249,7 +249,9 @@ local function check_enabled_configs()
ipairs(v --[[@as string[] ]])
do
if not vim.list_contains(valid_filetypes, filetype) then
- report_warn(("Unknown filetype '%s'."):format(filetype))
+ report_warn(
+ ("Unknown filetype '%s' (Hint: filename extension != filetype)."):format(filetype)
+ )
end
end
end
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua
index b4827d0f54..8dfca25fb9 100644
--- a/runtime/lua/vim/shared.lua
+++ b/runtime/lua/vim/shared.lua
@@ -717,6 +717,7 @@ end
--- vim.tbl_get({ key = { nested_key = true }}, 'key', 'nested_key') == true
--- vim.tbl_get({ key = {}}, 'key', 'nested_key') == nil
--- ```
+---@see |unpack()|
---
---@param o table Table to index
---@param ... any Optional keys (0 or more, variadic) via which to index the table