docs: fix typos

Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: Raphael <glephunter@gmail.com>
Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com>
Co-authored-by: himanoa <matsunoappy@gmail.com>
This commit is contained in:
dundargoc 2023-04-04 19:07:33 +02:00 committed by GitHub
parent b75acd2f94
commit a5c572bd44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 23 additions and 21 deletions

View File

@ -435,7 +435,7 @@ endfunction
" Check if pyenv is available and a valid pyenv root can be found, then return
" their respective paths. If either of those is invalid, return two empty
" strings, effectivly ignoring pyenv.
" strings, effectively ignoring pyenv.
function! s:check_for_pyenv() abort
let pyenv_path = resolve(exepath('pyenv'))

View File

@ -48,7 +48,7 @@ indent_style One of "tab" or "space". Sets the 'expandtab' option.
indent_size A number indicating the size of a single indent.
Alternatively, use the value "tab" to use the value of
the tab_width property. Sets the 'shiftwidth' and
'softtabstop'.
'softtabstop' options.
*editorconfig_insert_final_newline*
insert_final_newline "true" or "false" to ensure the file always has a

View File

@ -517,7 +517,7 @@ groups are derived from the token's type and modifiers:
• `@lsp.type.<type>.<ft>` for the type
• `@lsp.mod.<mod>.<ft>` for each modifier
• `@lsp.typemod.<type>.<mod>.<ft>` for each modifier
Use |:Inspect| to view the higlights for a specific token. Use |:hi| or
Use |:Inspect| to view the highlights for a specific token. Use |:hi| or
|nvim_set_hl()| to change the appearance of semantic highlights: >vim
hi @lsp.type.function guifg=Yellow " function names are yellow

View File

@ -539,7 +539,7 @@ about the triggered autocommand. The most useful keys are
For example, this allows you to set buffer-local mappings for some filetypes:
>lua
vim.api.nvim.create_autocmd("FileType", {
vim.api.nvim_create_autocmd("FileType", {
pattern = "lua",
callback = function(args)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = args.buf })

View File

@ -2001,7 +2001,7 @@ validate({opt}) *vim.validate()*
vim.validate{arg1={{'foo'}, {'table', 'string'}}, arg2={'foo', {'table', 'string'}}}
--> NOP (success)
vim.validate{arg1={1, {'string', table'}}}
vim.validate{arg1={1, {'string', 'table'}}}
--> error('arg1: expected string|table, got number')
<

View File

@ -259,7 +259,7 @@ The following changes to existing APIs or features add new behavior.
• API calls now show more information about where an exception happened.
• The `win_viewport` UI event now contains information about virtual lines,
meaning that smooth scrolling can now be implemented more consistenlty.
meaning that smooth scrolling can now be implemented more consistently.
• The `:= {expr}` syntax can be used to evaluate a lua expression, as
a shorter form of `:lua ={expr}`. `:=` and `:[range]=` without argument

View File

@ -4846,7 +4846,7 @@ A jump table for the options with a short description can be found at |Q_op|.
pack/ packages |:packadd|
parser/ |treesitter| syntax parsers
plugin/ plugin scripts |write-plugin|
query/ |treesitter| queries
queries/ |treesitter| queries
rplugin/ |remote-plugin| scripts
spell/ spell checking files |spell|
syntax/ syntax files |mysyntaxfile|
@ -7256,7 +7256,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'writedelay'* *'wd'*
'writedelay' 'wd' number (default 0)
global
Only takes effect toghether with 'redrawdebug'.
Only takes effect together with 'redrawdebug'.
The number of milliseconds to wait after each line or each flush
vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -105,7 +105,7 @@ with your plugin name: >
local M = {}
M.check = function()
vim.health.report_start("my_plugin report")
vim.health.report_start("foo report")
-- make sure setup function parameters are ok
if check_setup() then
vim.health.report_ok("Setup is correct")

View File

@ -242,7 +242,7 @@ argument.
*-ll*
-ll {script} [args]
Execute a lua script, similarly to |-l|, but the editor is not
initialized. This gives a lua enviroment similar to a worker
initialized. This gives a lua environment similar to a worker
thread. See |lua-loop-threading|.
Unlike `-l` no prior arguments are allowed.
@ -1394,7 +1394,7 @@ result in Neovim looking for configuration files in `$XDG_CONFIG_HOME/neovim`
instead of `$XDG_CONFIG_HOME/nvim`.
Note: Similarly to the $XDG environment variables, when
`$XDG_CONFIG_HOME/nvim` is mentionned, it should be understood as
`$XDG_CONFIG_HOME/nvim` is mentioned, it should be understood as
`$XDG_CONFIG_HOME/$NVIM_APPNAME`.
LOG FILE *log* *$NVIM_LOG_FILE* *E5430*

View File

@ -14,7 +14,7 @@ Supported platforms *supported-platforms*
`System` `Tier` `Versions` `Tested versions`
Linux 1 >= 2.6.32, glibc >= 2.12 Ubuntu 22.04
macOS (Intel) 1 >= 10.15 macOS 12
Windows 64-bit 1 >= 8 (see note below) Windows Server 2019
Windows 64-bit 1 >= 8 (see note below) Windows Server 2022
FreeBSD 1 >= 10 FreeBSD 13
macOS (M1) 2 >= 10.15
OpenBSD 2 >= 7

View File

@ -255,6 +255,8 @@ Highlight groups:
|hl-TermCursorNC|
|hl-WinSeparator| highlights window separators
|hl-Whitespace| highlights 'listchars' whitespace
|hl-WinBar| highlights 'winbar'
|hl-WinBarNC| highlights non-current window 'winbar'
Input/Mappings:
ALT (|META|) chords always work (even in the |TUI|). Map |<M-| with any key:

View File

@ -11,7 +11,7 @@ local M = {}
---@class ModuleFindOpts
---@field all? boolean Search for all matches (defaults to `false`)
---@field rtp? boolean Search for modname in the runtime path (defaults to `true`)
---@field patterns? string[] Paterns to use (defaults to `{"/init.lua", ".lua"}`)
---@field patterns? string[] Patterns to use (defaults to `{"/init.lua", ".lua"}`)
---@field paths? string[] Extra paths to search for modname
---@class ModuleInfo
@ -469,7 +469,7 @@ end
---@class ProfileOpts
---@field loaders? boolean Add profiling to the loaders
--- Debug function that wrapps all loaders and tracks stats
--- Debug function that wraps all loaders and tracks stats
---@private
---@param opts ProfileOpts?
function M._profile(opts)

View File

@ -655,7 +655,7 @@ end
--- vim.validate{arg1={{'foo'}, {'table', 'string'}}, arg2={'foo', {'table', 'string'}}}
--- --> NOP (success)
---
--- vim.validate{arg1={1, {'string', table'}}}
--- vim.validate{arg1={1, {'string', 'table'}}}
--- --> error('arg1: expected string|table, got number')
---
--- </pre>

View File

@ -68,7 +68,7 @@ function FoldInfo:add_stop(lnum)
self.stop_counts[lnum] = (self.stop_counts[lnum] or 0) + 1
end
---@packag
---@package
---@param lnum integer
---@return integer
function FoldInfo:get_start(lnum)

View File

@ -4180,7 +4180,7 @@ describe('API', function()
meths.cmd({ cmd = "buffers", mods = { filter = { pattern = "foo", force = true } } },
{ output = true }))
-- with emsg_silent = true error is suppresed
-- with emsg_silent = true error is suppressed
feed([[:lua vim.api.nvim_cmd({ cmd = 'call', mods = { emsg_silent = true } }, {})<CR>]])
eq('', meths.cmd({ cmd = 'messages' }, { output = true }))
-- error from the next command typed is not suppressed #21420

View File

@ -1367,7 +1367,7 @@ int main()
exec_lua([[
local text = ...
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, vim.fn.split(text, "\n"))
vim.wait(15) -- wait fot debounce
vim.wait(15) -- wait for debounce
]], test.text2)
end

View File

@ -3877,14 +3877,14 @@ describe('LSP', function()
local send_event
require('vim.lsp._watchfiles')._watchfunc = function(_, _, callback)
local stoppped = false
local stopped = false
send_event = function(...)
if not stoppped then
if not stopped then
callback(...)
end
end
return function()
stoppped = true
stopped = true
end
end