diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-04 00:38:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 07:38:48 +0800 |
commit | 936e191fef9865600af211c29ea4959ffbce81dd (patch) | |
tree | de6d07e200431bf5638c581b1a5bd856e0675682 /runtime | |
parent | 5529b07316b75913188c44698aed6c0f866c5da9 (diff) | |
download | rneovim-936e191fef9865600af211c29ea4959ffbce81dd.tar.gz rneovim-936e191fef9865600af211c29ea4959ffbce81dd.tar.bz2 rneovim-936e191fef9865600af211c29ea4959ffbce81dd.zip |
docs: fix typos (#21427)
Co-authored-by: Gustavo Sampaio <gbritosampaio@gmail.com>
Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com>
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
Co-authored-by: Tomas Nemec <nemi@skaut.cz>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 4 | ||||
-rw-r--r-- | runtime/doc/lua-guide.txt | 16 | ||||
-rw-r--r-- | runtime/doc/news.txt | 6 | ||||
-rw-r--r-- | runtime/doc/quickfix.txt | 2 | ||||
-rw-r--r-- | runtime/lua/nvim/health.lua | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 32c7ba67a5..fcd9bd0fe5 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -728,7 +728,7 @@ nvim_echo({chunks}, {history}, {*opts}) *nvim_echo()* • {opts} Optional parameters. • verbose: Message was printed as a result of 'verbose' option if Nvim was invoked with -V3log_file, the message - will be redirected to the log_file and surpressed from + will be redirected to the log_file and suppressed from direct output. nvim_err_write({str}) *nvim_err_write()* @@ -2549,7 +2549,7 @@ nvim_buf_get_extmarks({buffer}, {ns_id}, {start}, {end}, {opts}) -- Create new extmark at line 1, column 1. local m1 = a.nvim_buf_set_extmark(0, ns, 0, 0, {}) -- Create new extmark at line 3, column 1. - local m2 = a.nvim_buf_set_extmark(0, ns, 0, 2, {}) + local m2 = a.nvim_buf_set_extmark(0, ns, 2, 0, {}) -- Get extmarks only from line 3. local ms = a.nvim_buf_get_extmarks(0, ns, {2,0}, {2,0}, {}) -- Get all marks in this buffer + namespace. diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt index b0b2857300..71dc48b715 100644 --- a/runtime/doc/lua-guide.txt +++ b/runtime/doc/lua-guide.txt @@ -285,7 +285,7 @@ work: Instead, you need to create an intermediate Lua table and change this: >lua local temp_table = vim.g.some_global_variable - temp_table = keys = 400 + temp_table.key2 = 400 vim.g.some_global_variable = temp_table vim.pretty_print(vim.g.some_global_variable) --> { key1 = "value", key2 = 400 } @@ -408,7 +408,7 @@ mandatory arguments: • {lhs} is a string with the key sequences that should trigger the mapping. An empty string is equivalent to |<Nop>|, which disables a key. • {rhs} is either a string with a Vim command or a Lua function that should - be execucted when the {lhs} is entered. + be executed when the {lhs} is entered. Examples: >lua @@ -608,25 +608,25 @@ may be reloaded is This is equivalent to the following Lua code: >lua local mygroup = vim.api.nvim_create_augroup('vimrc', { clear = true }) - vim.api.nvim_create_autocmd( {'BufNewFile', 'BufRead' }, { + vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, { pattern = '*.html', group = mygroup, - cmd = 'set shiftwidth=4', + command = 'set shiftwidth=4', }) - vim.api.nvim_create_autocmd( {'BufNewFile', 'BufRead' }, { + vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, { pattern = '*.html', group = 'vimrc', -- equivalent to group=mygroup - cmd = 'set expandtab', + command = 'set expandtab', }) < Autocommand groups are unique for a given name, so you can reuse them, e.g., in a different file: >lua local mygroup = vim.api.nvim_create_augroup('vimrc', { clear = false }) - vim.api.nvim_create_autocmd( {'BufNewFile', 'BufRead' }, { + vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, { pattern = '*.html', group = mygroup, - cmd = 'set shiftwidth=4', + command = 'set shiftwidth=4', }) < ------------------------------------------------------------------------------ diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 03bbf1567b..a764b2b882 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -60,7 +60,7 @@ The following new APIs or features were added. • Added a |vim.lsp.codelens.clear()| function to clear codelenses. • |vim.inspect_pos()|, |vim.show_pos()| and |:Inspect| allow a user to get or show items - at a given buffer postion. Currently this includes treesitter captures, + at a given buffer position. Currently this includes treesitter captures, semantic tokens, syntax groups and extmarks. • Added support for semantic token highlighting to the LSP client. This @@ -124,7 +124,7 @@ The following new APIs or features were added. • |--remote-ui| option was added to connect to a remote instance and display in it in a |TUI| in the local terminal. This can be used run a headless nvim instance in the background and display its UI on demand, which previously - only was possible usiing a external UI implementation. + only was possible using an external UI implementation. ============================================================================== CHANGED FEATURES *news-changes* @@ -140,7 +140,7 @@ The following changes to existing APIs or features add new behavior. Previously, the TUI could be disabled as a build time feature (+tui/-tui), resulting in a nvim binary which only could be run headless or embedded - in an external process. As of this version, TUI is always avalibale. + in an external process. As of this version, TUI is always available. ============================================================================== REMOVED FEATURES *news-removed* diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index a30f32b75e..b1f7c927cc 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1265,7 +1265,7 @@ The .NET CLI compiler outputs both errors and warnings by default. The output may be limited to include only errors, by setting the g:dotnet_errors_only variable to |v:true|. -The associated project name is included in each error and warning. To supress +The associated project name is included in each error and warning. To suppress the project name, set the g:dotnet_show_project_file variable to |v:false|. Example: limit output to only display errors, and suppress the project name: > diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua index 0dd32ddc0b..c00b921d5c 100644 --- a/runtime/lua/nvim/health.lua +++ b/runtime/lua/nvim/health.lua @@ -1,7 +1,7 @@ local M = {} local health = require('vim.health') -local suggest_faq = 'https://github.com/neovim/neovim/wiki/FAQ' +local suggest_faq = 'https://github.com/neovim/neovim/wiki/Building-Neovim#optimized-builds' local function check_runtime() health.report_start('Runtime') |