fix #12261
fix #15536
fix #15623
fix #15572
ref #14244
ref #15034

close #15555
close #14957
This commit is contained in:
Justin M. Keyes
2021-09-10 06:59:17 -07:00
committed by GitHub
parent af6948d271
commit 329047b3db
6 changed files with 10 additions and 11 deletions

View File

@@ -4707,9 +4707,9 @@ getcurpos() Get the position of the cursor. This is like getpos('.'), but
|winrestview()| for restoring more state. |winrestview()| for restoring more state.
getcwd([{winnr}[, {tabnr}]]) *getcwd()* getcwd([{winnr}[, {tabnr}]]) *getcwd()*
With no arguments the result is a String, which is the name of With no arguments, returns the name of the effective
the current effective working directory. With {winnr} or |current-directory|. With {winnr} or {tabnr} the working
{tabnr} the working directory of that scope is returned. directory of that scope is returned.
Tabs and windows are identified by their respective numbers, Tabs and windows are identified by their respective numbers,
0 means current tab or window. Missing argument implies 0. 0 means current tab or window. Missing argument implies 0.
Thus the following are equivalent: > Thus the following are equivalent: >
@@ -9095,7 +9095,7 @@ system({cmd} [, {input}]) *system()* *E677*
*E5677* *E5677*
Note: system() cannot write to or read from backgrounded ("&") Note: system() cannot write to or read from backgrounded ("&")
shell commands, e.g.: > shell commands, e.g.: >
:echo system("cat - &", "foo")) :echo system("cat - &", "foo")
< which is equivalent to: > < which is equivalent to: >
$ echo foo | bash -c 'cat - &' $ echo foo | bash -c 'cat - &'
< The pipes are disconnected (unless overridden by shell < The pipes are disconnected (unless overridden by shell

View File

@@ -907,7 +907,7 @@ vim.fn.{func}({...}) *vim.fn*
To call autoload functions, use the syntax: > To call autoload functions, use the syntax: >
vim.fn['some#function']({...}) vim.fn['some#function']({...})
< <
Unlike vim.api.|nvim_call_function| this converts directly between Vim Unlike vim.api.|nvim_call_function()| this converts directly between Vim
objects and Lua objects. If the Vim function returns a float, it will objects and Lua objects. If the Vim function returns a float, it will
be represented directly as a Lua number. Empty lists and dictionaries be represented directly as a Lua number. Empty lists and dictionaries
both are represented by an empty table. both are represented by an empty table.

View File

@@ -207,6 +207,7 @@ registers. Nvim looks for these clipboard tools, in order of priority:
- lemonade (for SSH) https://github.com/pocke/lemonade - lemonade (for SSH) https://github.com/pocke/lemonade
- doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/ - doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/
- win32yank (Windows) - win32yank (Windows)
- termux (via termux-clipboard-set, termux-clipboard-set)
- tmux (if $TMUX is set) - tmux (if $TMUX is set)
*g:clipboard* *g:clipboard*

View File

@@ -296,7 +296,7 @@ for those who want to experiment with this feature and contribute to
its development. its development.
Highlights are defined in the same query format as in the tree-sitter highlight Highlights are defined in the same query format as in the tree-sitter highlight
crate, which some limitations and additions. Set a highlight query for a crate, with some limitations and additions. Set a highlight query for a
buffer with this code: > buffer with this code: >
local query = [[ local query = [[

View File

@@ -175,10 +175,8 @@ This switches on three very clever mechanisms:
*restore-cursor* *last-position-jump* > *restore-cursor* *last-position-jump* >
autocmd BufReadPost * autocmd BufRead * autocmd FileType <buffer> ++once
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ if &ft !~# 'commit\|rebase' && line("'\"") > 1 && line("'\"") <= line("$") | exe 'normal! g`"' | endif
\ | exe "normal! g`\""
\ | endif
Another autocommand. This time it is used after reading any file. The Another autocommand. This time it is used after reading any file. The
complicated stuff after it checks if the '" mark is defined, and jumps to it complicated stuff after it checks if the '" mark is defined, and jumps to it

View File

@@ -449,7 +449,7 @@ end
--- endif --- endif
--- return sl --- return sl
--- endfunction --- endfunction
--- let &l:statusline = '%#MyStatuslineLSP#LSP '.LspStatus() --- autocmd BufWinEnter * let &l:statusline = '%#MyStatuslineLSP#LSP '.LspStatus()
--- </pre> --- </pre>
--- ---
---@param bufnr number The buffer number ---@param bufnr number The buffer number