neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7154f0c98619d0789618f370a6c7f81ee1775469
parent 5959b3c9222629c0e6020672ad5b13d0ed707c99
Author: Jonas Strittmatter <40792180+smjonas@users.noreply.github.com>
Date:   Sat, 10 Jun 2023 03:37:05 +0200

docs: fix typos (#23917)


Diffstat:
Mruntime/doc/lua.txt | 6+++---
Mruntime/lua/vim/fs.lua | 2+-
Mruntime/lua/vim/keymap.lua | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt @@ -2563,7 +2563,7 @@ set({mode}, {lhs}, {rhs}, {opts}) *vim.keymap.set()* -- Map to a Lua function: vim.keymap.set('n', 'lhs', function() print("real lua function") end) -- Map to multiple modes: - vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, { buffer=true }) + vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, { buffer = true }) -- Buffer-local mapping: vim.keymap.set('n', '<leader>w', "<cmd>w<cr>", { silent = true, buffer = 5 }) -- Expr mapping: @@ -2697,8 +2697,8 @@ find({names}, {opts}) *vim.fs.find()* directories joinpath({...}) *vim.fs.joinpath()* - Concatenate directories and/or file into a single path with normalization - (e.g., `"foo/"` and `"bar"` get joined to `"foo/bar"`) + Concatenate directories and/or file paths into a single path with + normalization (e.g., `"foo/"` and `"bar"` get joined to `"foo/bar"`) Parameters: ~ • {...} (string) diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua @@ -72,7 +72,7 @@ function M.basename(file) return file:match('[/\\]$') and '' or (file:match('[^\\/]*$'):gsub('\\', '/')) end ---- Concatenate directories and/or file into a single path with normalization +--- Concatenate directories and/or file paths into a single path with normalization --- (e.g., `"foo/"` and `"bar"` get joined to `"foo/bar"`) --- ---@param ... string diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua @@ -6,7 +6,7 @@ local keymap = {} --- -- Map to a Lua function: --- vim.keymap.set('n', 'lhs', function() print("real lua function") end) --- -- Map to multiple modes: ---- vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, { buffer=true }) +--- vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, { buffer = true }) --- -- Buffer-local mapping: --- vim.keymap.set('n', '<leader>w', "<cmd>w<cr>", { silent = true, buffer = 5 }) --- -- Expr mapping: