aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-06-15 02:49:54 +0200
committerGitHub <noreply@github.com>2022-06-15 08:49:54 +0800
commit6de7f32d52822c3c09d24720efc65efe97a6e698 (patch)
treeb8f22be2faf350e2f3fa34068f1453ef279a00d0 /runtime
parent8ba64dd3ad1822efd6f986349e99f5f85afd7be7 (diff)
downloadrneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.tar.gz
rneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.tar.bz2
rneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.zip
docs: fix typos (#18866)
docs: fix typos and similarly insignificant changes Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: smjonas <jonas.strittmatter@gmx.de> Co-authored-by: kanreki <32443233+kanreki@users.noreply.github.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lsp.txt2
-rw-r--r--runtime/doc/lua.txt6
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
3 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 4f07752cb6..ee8424461e 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -99,7 +99,7 @@ To learn what capabilities are available you can run the following command in
a buffer with a started LSP client:
>
- :lua =vim.lsp.get_active_clients()[1].server_capabilties
+ :lua =vim.lsp.get_active_clients()[1].server_capabilities
<
Full list of features provided by default can be found in |lsp-buf|.
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index c9fd3d2786..9f8d4a8479 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -291,7 +291,7 @@ The Lua print() function redirects its output to the Nvim message area, with
arguments separated by " " (space) instead of "\t" (tab).
*:lua*
-:[range]lua {chunk}
+:lua {chunk}
Executes Lua chunk {chunk}.
If {chunk} starts with "=" the rest of the chunk is
evaluated as an expression and printed. `:lua =expr`
@@ -304,7 +304,7 @@ arguments separated by " " (space) instead of "\t" (tab).
:lua =jit.version
<
*:lua-heredoc*
-:[range]lua << [endmarker]
+:lua << [endmarker]
{script}
{endmarker}
Executes Lua script {script} from within Vimscript.
@@ -345,7 +345,7 @@ arguments separated by " " (space) instead of "\t" (tab).
:luado if bp:match(line) then return "-->\t" .. line end
<
*:luafile*
-:[range]luafile {file}
+:luafile {file}
Execute Lua script in {file}.
The whole argument is used as the filename (like
|:edit|), spaces do not need to be escaped.
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index fa8ee23805..97c30bc46a 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -708,7 +708,7 @@ local function on_code_action_results(results, ctx, options)
end
local found = false
for _, o in ipairs(options.context.only) do
- -- action kinds are hierachical with . as a separator: when requesting only
+ -- action kinds are hierarchical with . as a separator: when requesting only
-- 'quickfix' this filter allows both 'quickfix' and 'quickfix.foo', for example
if a.kind:find('^' .. o .. '$') or a.kind:find('^' .. o .. '%.') then
found = true