mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: misc (#29719)
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: Lauri Heiskanen <lauri.heiskanen@nimble.fi> Co-authored-by: Piotr Doroszewski <5605596+Doroszewski@users.noreply.github.com> Co-authored-by: Tobiasz Laskowski <tobil4sk@outlook.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: glepnir <glephunter@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -1593,7 +1593,7 @@ function vim.fn.eventhandler() end
|
||||
--- On MS-Windows the ".exe", ".bat", etc. can optionally be
|
||||
--- included. Then the extensions in $PATHEXT are tried. Thus if
|
||||
--- "foo.exe" does not exist, "foo.exe.bat" can be found. If
|
||||
--- $PATHEXT is not set then ".exe;.com;.bat;.cmd" is used. A dot
|
||||
--- $PATHEXT is not set then ".com;.exe;.bat;.cmd" is used. A dot
|
||||
--- by itself can be used in $PATHEXT to try using the name
|
||||
--- without an extension. When 'shell' looks like a Unix shell,
|
||||
--- then the name is also tried without adding an extension.
|
||||
|
@@ -2518,7 +2518,7 @@ end
|
||||
--- ['.*/etc/foo/.*%.conf'] = { 'dosini', { priority = 10 } },
|
||||
--- -- A pattern containing an environment variable
|
||||
--- ['${XDG_CONFIG_HOME}/foo/git'] = 'git',
|
||||
--- ['README.(%a+)$'] = function(path, bufnr, ext)
|
||||
--- ['.*README.(%a+)'] = function(path, bufnr, ext)
|
||||
--- if ext == 'md' then
|
||||
--- return 'markdown'
|
||||
--- elseif ext == 'rst' then
|
||||
|
@@ -1031,7 +1031,7 @@ end
|
||||
--- Provides an interface between the built-in client and a `formatexpr` function.
|
||||
---
|
||||
--- 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`
|
||||
--- `setlocal formatexpr=v:lua.vim.lsp.formatexpr()` or (more typically) in `on_attach`
|
||||
--- via `vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})'`.
|
||||
---
|
||||
---@param opts? vim.lsp.formatexpr.Opts
|
||||
|
Reference in New Issue
Block a user