aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-04 19:07:33 +0200
committerGitHub <noreply@github.com>2023-04-04 19:07:33 +0200
commita5c572bd446a89be2dccb2f7479ff1b017074640 (patch)
tree0d3177a9566106820249daeb625f54042d01856b
parentb75acd2f94feac5b55eaa219e7beb2af93f15cf0 (diff)
downloadrneovim-a5c572bd446a89be2dccb2f7479ff1b017074640.tar.gz
rneovim-a5c572bd446a89be2dccb2f7479ff1b017074640.tar.bz2
rneovim-a5c572bd446a89be2dccb2f7479ff1b017074640.zip
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>
-rw-r--r--runtime/autoload/health/provider.vim2
-rw-r--r--runtime/doc/editorconfig.txt2
-rw-r--r--runtime/doc/lsp.txt2
-rw-r--r--runtime/doc/lua-guide.txt2
-rw-r--r--runtime/doc/lua.txt2
-rw-r--r--runtime/doc/news.txt2
-rw-r--r--runtime/doc/options.txt4
-rw-r--r--runtime/doc/pi_health.txt2
-rw-r--r--runtime/doc/starting.txt4
-rw-r--r--runtime/doc/support.txt2
-rw-r--r--runtime/doc/vim_diff.txt2
-rw-r--r--runtime/lua/vim/loader.lua4
-rw-r--r--runtime/lua/vim/shared.lua2
-rw-r--r--runtime/lua/vim/treesitter/_fold.lua2
-rw-r--r--test/functional/api/vim_spec.lua2
-rw-r--r--test/functional/plugin/lsp/semantic_tokens_spec.lua2
-rw-r--r--test/functional/plugin/lsp_spec.lua6
17 files changed, 23 insertions, 21 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 59361eb735..70f525156c 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -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'))
diff --git a/runtime/doc/editorconfig.txt b/runtime/doc/editorconfig.txt
index 52fd860d2d..7c6e8fb95f 100644
--- a/runtime/doc/editorconfig.txt
+++ b/runtime/doc/editorconfig.txt
@@ -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
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index f5695669ae..01edbe7cbd 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -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
diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt
index 5e2b753645..3c2e1ac3d1 100644
--- a/runtime/doc/lua-guide.txt
+++ b/runtime/doc/lua-guide.txt
@@ -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 })
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index ebbf8bb463..ba83b18d07 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -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')
<
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 3ef6451ef9..f68edde33b 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -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
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 096b334cda..d22a78700f 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -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:
diff --git a/runtime/doc/pi_health.txt b/runtime/doc/pi_health.txt
index 5ba5d1beef..2ae93b098a 100644
--- a/runtime/doc/pi_health.txt
+++ b/runtime/doc/pi_health.txt
@@ -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")
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index 801ea77b7f..b3a30b20e8 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -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*
diff --git a/runtime/doc/support.txt b/runtime/doc/support.txt
index e4641751f2..80a035068a 100644
--- a/runtime/doc/support.txt
+++ b/runtime/doc/support.txt
@@ -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
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index d6ad9107b3..609184c82c 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -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:
diff --git a/runtime/lua/vim/loader.lua b/runtime/lua/vim/loader.lua
index 201de18497..38b1e9fc0f 100644
--- a/runtime/lua/vim/loader.lua
+++ b/runtime/lua/vim/loader.lua
@@ -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)
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua
index 9e337e93e8..eb734fb512 100644
--- a/runtime/lua/vim/shared.lua
+++ b/runtime/lua/vim/shared.lua
@@ -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>
diff --git a/runtime/lua/vim/treesitter/_fold.lua b/runtime/lua/vim/treesitter/_fold.lua
index 6547ab936e..7df93d1b2e 100644
--- a/runtime/lua/vim/treesitter/_fold.lua
+++ b/runtime/lua/vim/treesitter/_fold.lua
@@ -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)
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 83347a499b..de0d82119c 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -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
diff --git a/test/functional/plugin/lsp/semantic_tokens_spec.lua b/test/functional/plugin/lsp/semantic_tokens_spec.lua
index 780d18fce9..ec4d20974d 100644
--- a/test/functional/plugin/lsp/semantic_tokens_spec.lua
+++ b/test/functional/plugin/lsp/semantic_tokens_spec.lua
@@ -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
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 3de4c6275e..7d287d38fa 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -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