kuuote
0450e155d4
vim-patch:8.2.2233: cannot convert a byte index into a character index ( #13978 )
...
Problem: Cannot convert a byte index into a character index.
Solution: Add charidx(). (Yegappan Lakshmanan, closes vim/vim#7561 )
https://github.com/vim/vim/commit/17793ef23aae0bc94539390ccfe5e63b0ad39ff2
2021-02-22 20:13:14 -05:00
Matthieu Coudron
9d5f842807
lsp: remove deprecated references to 'callbacks' ( #13945 )
...
vim.lsp.callbacks was deprecated a few months ago. This is a cleanup before the release.
Use vim.lsp.handlers instead.
2021-02-23 00:02:51 +01:00
Matthieu Coudron
46a58b74f4
feat(lsp): use vim.notify for some errors ( #13992 )
2021-02-22 23:31:12 +01:00
erw7
66b0ab0883
vim-patch:8.1.1310: named function arguments are never optional
...
Problem: Named function arguments are never optional.
Solution: Support optional function arguments with a default value. (Andy
Massimino, closes vim/vim#3952 )
https://github.com/vim/vim/commit/42ae78cfff171fbd7412306083fe200245d7a7a6
2021-02-22 09:16:41 -05:00
Jan Edmund Lazo
595f6e4d64
vim-patch:8.2.2070: can't get the exit value in VimLeave(Pre) autocommands ( #13981 )
...
Problem: Can't get the exit value in VimLeave or VimLeavePre autocommands.
Solution: Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes vim/vim#7395 )
https://github.com/vim/vim/commit/f0068c5154a99b86b2c4515a4b93c003b2445cf4
Rearrange VimVarIndex enums and vimvars[] entries to sync with Vim.
N/A patches for version.c:
vim-patch:8.2.2535: MS-Windows: cannot run all vim9 tests
Problem: MS-Windows: cannot run all vim9 tests.
Solution: Make test_vim9 target work.
https://github.com/vim/vim/commit/723ef5db980b2e69ef8bdc0dd448cb645491c464
2021-02-20 23:45:14 -05:00
Mathias Fußenegger
1caf58578c
lsp: Fix text edits operating on the last line of a document ( #13677 )
...
`lines` can be empty, in which case `#lines[#lines]` failed with an
error:
lsp/util.lua:214: attempt to get length of a nil value
2021-02-19 22:20:42 -05:00
Michael Lingelbach
b2fcfc65b7
lsp: client stop cleanups ( #13877 )
...
* lsp: client stop cleanups
* Add diagnostic clearing to client.stop() method used by nvim-lspconfig
* Clear diagnostic cache to prevent stale diagnostics on client restart
* lsp: Add test for vim.lsp.diagnostic.reset
2021-02-19 22:05:49 -05:00
Jan Edmund Lazo
b46a92f519
runtime/tar: 23515b4ef7580af8b9d3b964a558ab2007cacda5
...
Port tar files only in order to support '*.tar.zst' files.
Close https://github.com/neovim/neovim/pull/13337
2021-02-17 23:59:17 -05:00
Jan Edmund Lazo
d3c6f74498
runtime/tar: 8024f936368336241406137a2fa78ed5ee9000a6
...
Port tar runtime files only.
2021-02-17 23:54:40 -05:00
Jan Edmund Lazo
1d84277738
runtime/tar: 2963456ff2b740244b3a064785fe681b1998d75e
...
Port tar files for release v31 only.
2021-02-17 23:39:37 -05:00
Brian Ryall
18f90336cb
vim-patch:8.2.2523: Svelte filetype not recognized ( #13961 )
...
Problem: Svelte filetype not recognized.
Solution: Add a detection rule. (Brian Ryall, closes vim/vim#7858 )
https://github.com/vim/vim/commit/c0fcb6e0b10050145e7d334b68b1bdc5201fed05
2021-02-18 00:22:48 +01:00
Brian Ryall
64b7d7ae78
vim-patch:8.2.2522: Beancount filetype not recognized ( #13960 )
...
Problem: Beancount filetype not recognized.
Solution: Add a detection rule. (Brian Ryall, closes vim/vim#7859 )
https://github.com/vim/vim/commit/9bbd883b3528b37dcacad22ad58861105a9ae428
2021-02-18 00:20:07 +01:00
Björn Linse
d623400cad
Merge pull request #13944 from chentau/on_bytes_doc
...
Doc: update documentation for on_bytes
2021-02-17 13:14:18 +01:00
chentau
d966e0142d
Doc: update documentation for on_bytes
2021-02-17 00:47:19 -08:00
Jakub Łuczyński
4bc74c2431
netrw: move netrw_home to XDA_DATA_HOME ( #13939 )
2021-02-16 21:21:43 -05:00
Yegappan Lakshmanan
03383ee27b
doc: Update vim_diff.txt ( #13954 )
...
Update vim_diff.txt to reflect the following patches:
patch 8.1.1113: making an autocommand trigger once is not so easy
patch 8.2.2128: there is no way to do something on CTRL-Z
patch 8.2.2508: cannot change the character displayed in non existing lines
patch 8.2.2518: 'listchars' should be window-local
2021-02-16 19:50:06 +01:00
Jan Edmund Lazo
44dac91501
runtime/netrw: 207f009326c8f878defde0e594d7d9ed9860106e
...
Port runtime/doc/pi_netrw.txt only.
2021-02-16 07:58:05 -05:00
Jan Edmund Lazo
d29553d4a9
runtime/netrw: 8024f936368336241406137a2fa78ed5ee9000a6
...
Port runtime/doc/pi_netrw.txt only.
2021-02-16 07:55:03 -05:00
Jan Edmund Lazo
44ba77e589
runtime/netrw: 2963456ff2b740244b3a064785fe681b1998d75e
...
Port netrw files for release v168 only.
2021-02-16 07:51:25 -05:00
Jan Edmund Lazo
8d2c76c80c
runtime/netrw: 469bdbde1e8ea8110705327ab193acca79296742
...
Port runtime/doc/pi_netrw.txt only.
2021-02-15 21:32:28 -05:00
Jan Edmund Lazo
803be53cf7
runtime/netrw: 2ed639abdc4000436115f378e28320b7bee38a6e
...
Port runtime/doc/pi_netrw.txt only.
2021-02-15 21:31:30 -05:00
Jan Edmund Lazo
08947d1642
runtime/netrw: 91359014b359cf816bf943fe2c7d492996263def
...
Port netrw files for release v167 only.
2021-02-15 21:29:20 -05:00
Jan Edmund Lazo
9b662a57db
runtime/netrw: 09c6f265b21065ffa9437837b1d0955137175e45
...
Port runtime/doc/pi_netrw.txt only.
2021-02-15 21:21:10 -05:00
Jan Edmund Lazo
68816c7e0a
runtime/netrw: 574ee7bc1246070dba598f9561a2776aa1a10d07
...
Port runtime/doc/pi_netrw.txt only.
2021-02-15 21:19:47 -05:00
Jan Edmund Lazo
e35c766518
runtime/netrw: 5ef1c6a4838a9629b793f3ae676f72a764171b00
...
Port netrw files only.
2021-02-15 21:16:27 -05:00
Jan Edmund Lazo
147d40f2a0
vim-patch:8.2.0925: getcompletion() does not return command line arguments
...
Problem: Getcompletion() does not return command line arguments.
Solution: Add the "cmdline" option. (Shougo, closes vim/vim#1140 )
https://github.com/vim/vim/commit/1f1fd44ef796dd909ff5f3e5288b3fd79294dc71
2021-02-14 10:00:59 -05:00
Jan Edmund Lazo
54cd7298f8
vim-patch:8.2.0054: :diffget and :diffput don't have good completion
...
Problem: :diffget and :diffput don't have good completion.
Solution: Add proper completion. (Dominique Pelle, closes vim/vim#5409 )
https://github.com/vim/vim/commit/ae7dba896975051a3f0b7123faa08dac5635972d
2021-02-13 18:17:25 -05:00
最上川
8399f48ca9
man.vim: :Man should not change global value of 'tagfunc' option ( #13926 )
2021-02-13 11:54:03 -05:00
Sean Dewar
d9dd360d2a
vim-patch:8.2.1967: the session file does not restore the alternate file
...
Problem: The session file does not restore the alternate file.
Solution: Add ":balt". Works like ":badd" and also sets the buffer as the
alternate file. Use it in the session file. (closes vim/vim#7269 ,
closes vim/vim#6714 )
https://github.com/vim/vim/commit/59d8e56e048eb5d384649284fb35363931fc3697
Include minimal test_buffer.vim from patch 8.2.0243 for Test_balt().
Add entry for :balt to runtime/doc/index.txt from vim/vim#7819 .
2021-02-11 19:00:24 +00:00
Jan Edmund Lazo
81b4c88130
vim-patch:8.2.2490: 'wrap' option is always reset when starting diff mode
...
Problem: 'wrap' option is always reset when starting diff mode.
Solution: Add the "followwrap" item in 'diffopt'. (Rick Howe, closes vim/vim#7797 )
https://github.com/vim/vim/commit/4223d43c0fb6ead1e611e4469a1680a9228b6015
2021-02-10 18:20:02 -05:00
Björn Linse
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
Björn Linse
fa5f583981
treesitter: propagate on_detach event properly
2021-02-10 18:57:49 +01:00
Matthieu Coudron
00423730b5
Merge pull request #13843 from teto/notif_provider
...
[RDY] Notification provider
2021-02-08 15:49:27 +01:00
Santos Gallegos
947f9a04d4
treesitter: small fixes
...
Mostly typos I found while reading the code.
2021-02-07 01:27:38 -05:00
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
02a9663869
Merge pull request #13701 from erw7/fix-checkhealth
...
Fix checkhealth problems
2021-02-06 13:01:37 +09:00
erw7
787339892d
Merge pull request #12080 from erw7/feature-bracketed-paste-on-term
...
terminal: add bracketed pasting feature
2021-02-06 12:51:24 +09:00
runiq
94cf7bba00
lsp: Fix pumvisible() check introduced in #12900 ( #13866 )
...
`pumvisible()` returns a number, and numbers are always `true` in Lua,
so the return value needs to be checked explicitly.
Using https://github.com/neovim/neovim/pull/12900 as context, it appears
the intention was to move into the `if` branch when the completion popup
is not shown (i.e. `vim.fn.pumvisible() == 0`).
2021-02-04 12:35:17 +01: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
Matthieu Coudron
3f81f5c7a4
feat: adds vim.notify
...
Adds function to notify the user like this:
`:lua vim.notify("hello user")`
embeds log levels vim.log.levels.
you can then reassign vim.notify to for instance
```
function notify_external(msg, log_level, opts)
vim.fn.jobstart({"notify-send", msg })
end
```
2021-01-31 00:18:22 +01:00
Saad Parwaiz
55fed9a2b0
runtime/zsh: 23515b4ef7580af8b9d3b964a558ab2007cacda5
...
port zsh compiler only
2021-01-30 20:50:04 +00:00
Saad Parwaiz
bf1da7424d
runtime/zsh: 23515b4ef7580af8b9d3b964a558ab2007cacda5
...
port zsh ftplugin only.
2021-01-30 20:50:04 +00:00
Saad Parwaiz
7722eb0953
runtime/zsh: b17893aa940dc7d45421f875f5d90855880aad27
...
port zsh ftplugin only
2021-01-30 20:50:04 +00:00
Saad Parwaiz
da61cca9f7
runtime/zsh: 23515b4ef7580af8b9d3b964a558ab2007cacda5
...
port zsh syntax file only
2021-01-30 20:50:04 +00:00
Saad Parwaiz
d89cbb62ab
runtime/zsh: b17893aa940dc7d45421f875f5d90855880aad27
...
port zsh syntax file only
2021-01-30 20:50:04 +00:00
Saad Parwaiz
44802202be
runtime/zsh: 96f45c0b6fc9e9d404e6805593ed1e0e6795e470
...
Port zsh syntax file only
2021-01-30 20:50:04 +00: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
Jan Edmund Lazo
78f0f00cd5
Merge pull request #13820 from janlazo/vim-8.2.2392
...
vim-patch:8.2.{2392,2399,2402}
2021-01-25 21:20:14 -05:00
Michael Lingelbach
1a6d89eb90
lsp: match textDocument/didChange eol behavior ( #13792 )
...
We should be consistent in sending the EOL character to servers(I think). Julia expects this to match on bufwrite, or it crashes when vim appends the newline during the write process.
2021-01-25 17:52:40 +01:00