mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
chore: fix typos (#17670)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -25,8 +25,8 @@ local keymap = {}
|
||||
--- vim.keymap.set('n', 'asdf', require('jkl').my_fun)
|
||||
--- </pre>
|
||||
---
|
||||
--- the `require('jkl')` gets evaluated during this call in order to access the function. If you want to
|
||||
--- avoid this cost at startup you can wrap it in a function, for example:
|
||||
--- the ``require('jkl')`` gets evaluated during this call in order to access the function.
|
||||
--- If you want to avoid this cost at startup you can wrap it in a function, for example:
|
||||
--- <pre>
|
||||
--- vim.keymap.set('n', 'asdf', function() return require('jkl').my_fun() end)
|
||||
--- </pre>
|
||||
|
||||
@@ -1689,7 +1689,7 @@ end
|
||||
---
|
||||
--- Currently only supports a single client. This can be set via
|
||||
--- `setlocal formatexpr=v:lua.vim.lsp.formatexpr()` but will typically or in `on_attach`
|
||||
--- via `vim.api.nvim_buf_set_option(bufnr, 'formatexpr', 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})')`.
|
||||
--- via ``vim.api.nvim_buf_set_option(bufnr, 'formatexpr', 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})')``.
|
||||
---
|
||||
---@param opts table options for customizing the formatting expression which takes the
|
||||
--- following optional keys:
|
||||
|
||||
@@ -331,7 +331,7 @@ end
|
||||
|
||||
--- Add the reverse lookup values to an existing table.
|
||||
--- For example:
|
||||
--- `tbl_add_reverse_lookup { A = 1 } == { [1] = 'A', A = 1 }`
|
||||
--- ``tbl_add_reverse_lookup { A = 1 } == { [1] = 'A', A = 1 }``
|
||||
--
|
||||
--Do note that it *modifies* the input.
|
||||
---@param o table The table to add the reverse to.
|
||||
|
||||
Reference in New Issue
Block a user