James McCoy
33f92fe025
fix(pty): Always use $TERM from the job's env dict
...
Before #12937 , the only way to specify the `$TERM` for a pty job was
through the `TERM` key in the job's opts dict. This was shuttled to the
child process throug a special field on the PtyProcess object and
injected into the environment after forking.
Now that we have a proper way to specify the environment for a job, we
can simply ensure that the env dict has a proper `TERM` set and avoid
the extra shuttling of data around.
This deprecates the use of the `TERM` option, but will still honor it if
present, although at a lower priority than a `TERM` present in the env
dict.
This also fixes #13874 because we're no longer trying to overwrite
`TERM` in the env dict with the special pty `term_name`. Doing so
raises an internal error because of the existing key which, under
certain circumstances, would cause the "hit enter" prompt. However,
since the child process had already forked, there was no way for the
user to acknowledge the prompt and we would just hang there.
2021-02-06 07:12:33 -05:00
erw7
4dc41c0516
Change default for tpf option
...
Change the default of tpf to the same value as the default of xterm's
disallowedPasteControls, because it may be a security risk.
2021-02-04 15:20:05 +09:00
erw7
1e3fadb419
Add termpastefilter option
...
Change to specify a character to be filtered as an option when pasting on
the terminal.
2021-02-04 15:20:05 +09:00
Thomas Vigouroux
8950f4e94a
Merge pull request #13784 from runiq/get_extmark_by_id-limit_break
...
doc: remove nvim_buf_get_extmark_by_id limit opt
2021-01-28 18:27:24 +01:00
Matthieu Coudron
69103ff0cf
Merge pull request #13807 from spywhere/min-size-auto-sign
...
Auto sign column with minimum size support
2021-01-23 22:46:29 +01:00
Patrice Peterson
08f2aa5917
Doc: Generate API docs for buf_set_extmark gravity
...
Cf. #13679
2021-01-23 19:32:18 +01:00
Michael Lingelbach
3a3e6742f9
lsp: clear diagnostics on client shutdown ( #13788 )
2021-01-23 17:43:06 +01:00
Sirisak Lueangsaksri
fcd6eea217
opt: update docs on signnumber ( #13783 )
2021-01-20 23:57:21 +07:00
notomo
8e86f5e460
api: nvim_echo
2021-01-20 16:41:39 +01:00
Thomas Vigouroux
d9c1586e4a
Merge pull request #13765 from jvgrootveld/ts-default-start-end-row-on-capture
...
treesitter: default start and end row when omitted
2021-01-20 10:32:48 +01:00
Michael Lingelbach
f9b3110549
lsp: validate and document server settings ( #13698 )
...
* update lua documentation
* run docgen
2021-01-18 14:11:37 -05:00
Patrice Peterson
fe02c65395
doc: remove nvim_buf_get_extmark_by_id limit opt
...
Passing any key but `details` in the opts results in an error.
2021-01-18 13:34:08 +01:00
Michael Lingelbach
61437c20b5
api: add vim.version ( #13762 )
...
retrun a structured version dict
:lua print(vim.inspect(vim.version()))
{
api_compatible = 0,
api_level = 7,
api_prerelease = true,
major = 0,
minor = 5,
patch = 0
}
2021-01-18 09:37:18 +01:00
Jan Edmund Lazo
6a01b3fcc3
vim-patch:8.2.2366: when using ":sleep" the cursor is always displayed
...
Problem: When using ":sleep" the cursor is always displayed.
Solution: Do not display the cursor when using ":sleep!". (Jeremy Lerner,
closes vim/vim#7688 )
https://github.com/vim/vim/commit/e2edc2ed4a9a229870b1e1811b0ecf045b84e429
Cursor showing/hiding is moved from core to TUI.
":sleep!" behaves the same as ":sleep".
2021-01-17 12:42:28 -05:00
Michael Lingelbach
640febaca7
log.c: warn instead of error on failed stdpath('cache') creation
2021-01-16 18:58:11 -08:00
Michael Lingelbach
abbfaf286f
logs: make kXDGCacheHome if it doesn't exist ( #13758 )
2021-01-16 21:14:59 +01:00
“jvgrootveld”
a2818819bb
treesitter: default start and end row when omitted
...
Add support for default start and end row when omitted in the
query:iter_captures and query:iter_matches functions.
When the start and end row values are omitted, the values of the given
node is used. The end row value is incremented by 1 to include the node end
row in the match.
Updated tests and docs accordingly.
2021-01-15 21:44:40 +01:00
Michael Lingelbach
ea8756f85d
logging: move to XDG_CACHE_HOME ( #13739 )
...
while there is some controversy, stdpath('cache') looks like a better fit for logs than stdpath('data'): you can remove logs without preventing nvim to work which fits the XDG_CACHE_HOME definition of `user specific non-essential data files`.
2021-01-13 23:20:21 +01:00
Michael Lingelbach
77a6049e07
lsp: fix on_attach signature documentation ( #13723 )
...
* trim trailing whitespace from docs
2021-01-12 22:47:34 +01:00
Michael Lingelbach
953a548454
lsp: remove references to LspInstall ( #13738 )
...
and adjust sumneko setup instructions
2021-01-12 22:09:41 +01:00
TJ DeVries
9f3b2a757b
lsp: Add severity_limit for other diagnostics features ( #13528 )
...
* lsp: Add severity_limit for other diagnostics
* docs and tests
* fix: lint
* Add to other types
* fix: lint
2021-01-12 12:58:50 -05:00
TJ DeVries
e0a4399adc
fix(lsp): Allow subsequent text document edits to pass ( #13534 )
...
* fix: Allow subsequent text document edits to pass
* fixup: cleaner code
* add tests
2021-01-11 11:39:11 -05:00
Jan Edmund Lazo
25cb2c722e
vim-patch:8.2.0590: no 'backspace' value allows ignoring the insertion point
...
Problem: No 'backspace' value allows ignoring the insertion point.
Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes vim/vim#5940 )
https://github.com/vim/vim/commit/aa0489e12d227d24752cf16e4e97058ac32edcc1
2021-01-05 09:47:38 -05:00
Patrik Wenger
6d5626f355
remove trailing tabs
2021-01-04 20:10:34 +01:00
Jan Edmund Lazo and Peter Wolf
a1ed941a78
vim-patch:8.2.0861: cannot easily get all the current marks ( #13676 )
...
Problem: Cannot easily get all the current marks.
Solution: Add getmarklist(). (Yegappan Lakshmanan, closes #6032 )
https://github.com/vim/vim/commit/cfb4b47de08e4437c692d382067dc1692cd83c23
Cherry-pick the column number fix from patch v8.2.0871
because patch v8.2.0871 cannot be fully ported
without the method patches.
Co-authored-by: Peter Wolf <pwolf2310@gmail.com >
2021-01-03 15:33:21 -05:00
Michael Lingelbach
fff4facdc4
LSP: fix messageRequest to not return nested title ( #13674 )
...
* LSP: fix window/showMessageRequest to not return nested title
* Add window/showMessageRequest handler to docs
2021-01-03 20:31:09 +01:00
Jan Edmund Lazo
01eda00962
vim-patch:8.2.0917: quickfix entries do not suport a "note" type
...
Problem: Quickfix entries do not suport a "note" type.
Solution: Add support for "note". (partly by Yegappan Lakshmanan,
closes vim/vim#5527 , closes vim/vim#6216 )
https://github.com/vim/vim/commit/e928366de5deca359fad779a4f740db703296302
2021-01-02 12:20:34 -05:00
Matthieu Coudron
48caf1df85
Merge pull request #13649 from mjlbach/move_from_nvim-lspconfig
...
LSP: Move workspace/configuration from nvim-lspconfig to core
2021-01-01 23:52:48 +01:00
Jan Edmund Lazo
5eccfd2b2e
Merge pull request #13655 from janlazo/vim-8.2.2255
...
vim-patch:8.1.{1241,1261,1275,1281,1549,1590,1881,2079,2322,2360,2411},8.2.{113,388,934,2255,2258,2260,2269}
2021-01-01 17:40:26 -05:00
TJ DeVries
7718826edf
docs: nvim_buf_set_text
2021-01-01 14:24:40 -05:00
Björn Linse
90f619f140
Merge pull request #13592 from bfredl/setmouse
...
ui: make 'mouse' handling in external UI more consistent
2021-01-01 20:04:09 +01:00
Björn Linse
6db86cb2d3
ui: make 'mouse' handling in external UI more consistent
...
before the behaviour of 'mouse' was inconsistent in external UI,
as some remapping logic would check has_mouse() and others don't
(no difference in TUI or vim classic). With this change, the behaviour
is consistently up to the UI decide (see ui.txt edit)
Behaviour of tui.c is unaffected by this change.
2021-01-01 15:47:44 +01:00
Jan Edmund Lazo
d7b577d6ab
vim-patch:8.1.1281: cannot specify a count with :chistory
...
Problem: Cannot specify a count with :chistory.
Solution: Add a count to :chistory and :lhistory. (Yegappan Lakshmanan,
closes vim/vim#4344 )
https://github.com/vim/vim/commit/8ffc7c8b5f004971cb6f2bdcfbe4f7123cce717c
2021-01-01 04:58:05 -05:00
Jan Edmund Lazo
d1608f7503
vim-patch:8.1.1275: cannot navigate to errors before/after the cursor
...
Problem: Cannot navigate to errors before/after the cursor.
Solution: Add the :cbefore and :cafter commands. (Yegappan Lakshmanan,
closes vim/vim#4340 )
https://github.com/vim/vim/commit/cf6a55c4b0cbf38b0c3fbed5ffd9a3fd0d2ede0e
2021-01-01 04:58:05 -05:00
erw7
35dc6d6e87
vim-patch:8.1.1261: no error for quickfix commands with negative range
...
Problem: No error for quickfix commands with negative range.
Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make
assert_fails() show the command if the error doesn't match.
https://github.com/vim/vim/commit/25190db225d63e185e77e043e694ef455b3cf304
N/A patches for version.c:
vim-patch:8.2.0113: "make cmdidxs" fails
Problem: "make cmdidxs" fails.
Solution: Allow address for ":cquit". Add --not-a-term to avoid a delay.
https://github.com/vim/vim/commit/9b24dfcb9f676e7f7a09a9062f0d05b2104a87eb
2021-01-01 04:57:50 -05:00
Michael Lingelbach
e467d29390
LSP: Move workspace/configuration handler from nvim-lspconfig to core
2021-01-01 01:40:33 -08:00
Timmy Xiao
329547bf70
doc: Fix some spelling errors ( #13636 )
...
- Change 'conenvience' to 'convenient'
- Change 'lsp-handers' to 'lsp-handlers'
2020-12-30 23:39:05 +01:00
HARSH-SHETH
b9c48e1d75
Fixed a typo.
...
Changed 'reqesting' to 'requesting' in /runtime/doc/api.txt file
2020-12-27 10:19:21 +05:30
Jan Edmund Lazo
8cf4a02bf2
vim-patch:8.1.2212: cannot see the selection type in :reg output
...
Problem: Cannot see the selection type in :reg output. (Ayberk Aydın)
Solution: Add c/l/b. (Christian Brabandt, closes vim/vim#5110 , closes vim/vim#4546 )
https://github.com/vim/vim/commit/3691f1ee72b68a47e6dcc75927bfa46565cf3614
Patch v8.1.0999 is not ported so ":registers" does not omit register 1.
2020-12-25 10:17:00 -05:00
Jan Edmund Lazo
b1711e6f92
foldcolumn: support "auto" ( #13571 )
...
"set foldcolumn=auto" is documented but not supported.
Support it by making it behave as "auto:1", similar to "signcolumn".
Close https://github.com/neovim/neovim/pull/13561
2020-12-20 15:20:42 -05:00
Mitchell Hanberg
fa46123998
doc: Fix vim.lsp.diagnostic.get_next ( #13495 )
2020-12-20 16:17:11 +01:00
Björn Linse
2debabb080
Merge pull request #13355 from notomo/check-textlock-in-api
...
api: add textlock check
2020-12-16 15:40:21 +01:00
notomo
93ba977793
docs: add check_textlock attribute
2020-12-16 21:57:24 +09:00
Steven Sojka
929f194145
feat(treesitter): add offset predicate for language injection
...
refactor(treesitter): add directives to queries
2020-12-15 07:03:47 -06:00
Jan Edmund Lazo
062576f679
vim-patch:8.2.0047: cannot skip tests for specific MS-Windows platform ( #13461 )
...
Problem: Cannot skip tests for specific MS-Windows platform.
Solution: Add windowsversion().
https://github.com/vim/vim/commit/0c1e3744ff0cd6c17af773046b876b428ff3dded
2020-12-11 19:45:22 -05:00
Kevin Fleming
fb1c08a86f
doc: Fix incorrect LSP diagnostic-related helptags ( #13388 )
2020-12-09 11:21:16 +01:00
Olivier Roques
222a0452fa
doc: Add missing parameter end_pos for range_formatting ( #13481 )
2020-12-09 11:19:56 +01:00
TJ DeVries
08ec36efaf
feat: Allow incremental sync & lsp flags ( #13371 )
2020-12-08 21:09:33 -05:00
Leandro Ostera
c86ba6dea4
Fix typo on treesitter.txt help page
2020-12-07 08:08:23 +01:00
Jan Edmund Lazo
a4e18e50ef
runtime/doc: strftime() is always available
2020-12-06 19:26:33 -05:00