Jan Edmund Lazo
63c2a7af2d
Merge pull request #13851 from VVKot/vim-8.1.0105
...
vim-patch:8.1.{0105,0114,0116,0126,0138,0154,0479,0542,0936}
2021-03-28 13:40:34 -04:00
Björn Linse
6d4a922e07
Merge pull request #14091 from euclidianAce/euclidianAce/nvim_win_hide
...
api: add vim.api.nvim_win_hide
2021-03-28 19:07:56 +02:00
Corey Williamson
45236981d8
run docgen
2021-03-28 19:03:35 +02:00
VVKot
7fc58ec99a
vim-patch:8.1.0542: shiftwidth() does not take 'vartabstop' into account
...
Problem: shiftwidth() does not take 'vartabstop' into account.
Solution: Use the cursor position or a position explicitly passed.
Also make >> and << work better with 'vartabstop'. (Christian
Brabandt)
https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2
2021-03-28 08:38:21 +01:00
VVKot
6752ac4968
vim-patch:8.1.0105: all tab stops are the same
...
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711 )
https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd
2021-03-28 08:37:01 +01:00
Marco Hinz
2b663c061b
viml: embed Lua syntax highlighting [skip ci] ( #14213 )
2021-03-28 00:43:06 +01:00
Jan Edmund Lazo
3261ba98a2
vim-patch:8.1.2326: cannot parse a date/time string
...
Problem: Cannot parse a date/time string.
Solution: Add strptime(). (Stephen Wall, closes #)
https://github.com/vim/vim/commit/10455d43fef041309ce0613fa792c635dd71e3a8
N/A patches for version.c:
vim-patch:8.1.2344: Cygwin: warning for using strptime()
Problem: Cygwin: warning for using strptime().
Solution: Move defining _XOPEN_SOURCE and __USE_XOPEN to vim.h. (Ken Takata,
closes vim/vim#5265 ) Use 700 for _XOPEN_SOURCE for mkdtemp().
https://github.com/vim/vim/commit/6a228c6463935a73c8f21142cb7368545cfee317
2021-03-27 10:53:41 -04:00
Jan Edmund Lazo
d41778c993
Merge pull request #14178 from andymass/vim-8.2.0088
...
[RFC] vim-patch 8.2.0088: insufficient tests for tags...
2021-03-22 20:35:24 -04:00
Andy K. Massimino
6519b18471
vim-patch:8.2.0088: insufficient tests for tags; bug in using extra tag field
...
Problem: Insufficient tests for tags; bug in using extra tag field when
using an ex command to position the cursor.
Solution: Fix the bug, add more tests. (Yegappan Lakshmanan, closes vim/vim#5439 )
https://github.com/vim/vim/commit/830c1afc9d2cd5819a05c71d4e0b1f748a8c0519
2021-03-21 10:37:45 -04:00
Jan Edmund Lazo
c620ca4cc2
vim-patch:8.2.2634: 'tagfunc' does not indicate using a pattern
...
Problem: 'tagfunc' does not indicate using a pattern.
Solution: Add the "r" flag. (Andy Massimino, closes vim/vim#7982 )
https://github.com/vim/vim/commit/f90c855c71863296859780f7b4e0386e96f1c465
2021-03-21 10:35:26 -04:00
Jan Edmund Lazo
dc8da7ba40
Merge pull request #14060 from andymass/vim-8.2.1703
...
[RFC] vim-patch:8.2.{1693,1703,1705}
2021-03-20 18:08:16 -04:00
Jan Edmund Lazo
049213b419
Merge pull request #14164 from andymass/vim-8.1.2020
...
[RFC] vim-patch 8.{1.2020,2.0093,2.0422}: add win_splitmove()
2021-03-20 15:59:53 -04:00
Andy K. Massimino
1ef4340f22
vim-patch:8.1.2020: it is not easy to change the window layout
...
Problem: It is not easy to change the window layout.
Solution: Add win_splitmove(). (Andy Massimino, closes vim/vim#4561 )
https://github.com/vim/vim/commit/d20dcb3d011da6111153109f6e46fbd5c7fe9fb6
2021-03-19 23:02:28 -04:00
Michael Lingelbach
2358e52fc4
lsp: set syntax instead of filetype for preview location highlighting
2021-03-19 12:55:58 -07:00
Björn Linse
bb6d2c9b7c
api: destabilize nvim_set_hl_ns
...
The sematics and signature of this API is going to change, but we
don't wanna delay 0.5 for it. Mark API as unstable for now.
2021-03-15 09:58:39 +01:00
Mathias Fussenegger
16827817bb
lsp: Use incremental sync by default
...
With the new implementation added in
https://github.com/neovim/neovim/pull/14079 I think this is now working
well enough to enable it by default.
There are high CPU usage issues popping up now and then and they might
at least partially be related to the full-text sync.
2021-03-11 20:13:52 +01:00
Mathias Fussenegger
02271009ca
Update lsp, lua and api docs (gen_vimdoc.py)
2021-03-11 16:16:26 +01:00
TJ DeVries and Jan Dammshäuser
564dd7d8db
lsp: get_language_id ( #14092 )
...
* Allow specifying a languageId for a lsp
For some languages the filetype might not match the languageId the
language server accepts. In these cases the config for the language
server can contain a function which gets the current buffer and filetype
and returns a languageId. When it isn't provided the filetype is used
instead.
Example:
```lua
require'lspconfig'.sourcekit.setup{
get_language_id = function(bufnr, ft)
return 'swift'
end;
}
```
Closes #13093
* lsp: Change to get_language_id
Co-authored-by: Jan Dammshäuser <mail@jandamm.de >
2021-03-10 16:53:23 -05:00
Michael Sartain
300e71de9c
runtime/termdebug 82be4849eed0b8fbee45bc8da99b685ec89af59a ( #13660 )
...
port termdebug dissasembly window only (termdebug.vim)
This patch adds disassembly window to Termdebug
:Asm should bring up disassembly window
or setting:
g:termdebug_disasm_window
Values greater than 1 will set disasm window height.
Code works by calling gdb disassemble command, demangling output and
storing in Termdebug-asm-listing buffer + window.
Current pc address is parsed from 'addr=' cursor msg and we search for
that address in the disasm window. When the search fails, we execute a
new "disassemble $pc" command.
When in a location without a proper stack frame, "disassemble $pc" can
fail and in this case we add a +length argument and try again.
Tested with x86_64 gdb v10.1 and v8.2.1, and aarch64 gdb v7.12.
2021-03-10 08:20:22 -05:00
Michael Lingelbach
e4e51c69d7
lsp: add incremental text synchronization
...
* Implementation derived from and validated by vim-lsc authored by Nate
Bosch
2021-03-09 20:14:08 -08:00
Lee Wannacott
d8dff33e4b
Added If true to show that {after} and {follow} parameters of nvim_put() are expecting boolean values
2021-03-07 00:54:13 +13:00
Lee Wannacott
ea99e7f2ab
Forgot to add colon to the {follow} parameters statement
2021-03-07 00:31:58 +13:00
Lee Wannacott
cde94598ed
Clarify that nvim_put()'s {after} and {follow} parameters expect boolean values true, or false.
2021-03-07 00:06:13 +13:00
Andy K. Massimino
8601e8b0d6
vim-patch:8.2.1703: ":highlight clear" does not restore default link
...
Problem: ":highlight clear" does not restore default link.
Solution: Remember the default link and restore it. (Antony Scriven,
closes vim/vim#6970 , closes vim/vim#4405 )
https://github.com/vim/vim/commit/213da551dec465e193619684b260bf9d5a8d6afc
2021-03-05 01:45:54 -05:00
Volodymyr Kot
df4440024b
vim-patch:30e9b3c42567 ( #13936 )
...
Update runtime files
https://github.com/vim/vim/commit/30e9b3c4256710781c3bd64efb33f138e4e074b3
2021-03-03 18:19:01 -05:00
Jan Edmund Lazo
f32acc70e8
vim-patch:8.2.2236: 'scroll' option can change when setting the statusline
...
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes vim/vim#7533 )
https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
2021-03-02 00:35:52 -05:00
Jan Edmund Lazo
a5bacdbfb4
vim-patch:8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
2021-03-01 23:41:10 -05:00
Jan Edmund Lazo
a2b6e5ed4e
Merge pull request #14004 from erw7/fix-fic
...
option: fix problem with fileignorecase not being set properly
2021-02-25 12:45:53 -05:00
erw7
6deabca3e7
eval: add fname_case to feature list
2021-02-25 13:50:31 +09:00
Mathias Fussenegger
b5292a047d
Update lsp and api docs with gen_vimdoc changes
...
Applies the changes generated with ./scripts/gen_vimdoc.py to add
missing documentation.
2021-02-24 23:44:52 +01:00
Chris Kipp
7d82aaa6f5
[LSP] Add in more docs for highlight groups with document_highlight() ( #13614 )
...
Currently it's not 100% clear that without setting these, using the autocomds
to utilize the `textDocument/documentHighlight` functionality, nothing will
actually be visible since the highlight groups don't have any details. This
just adds in a couple simple extra notes to make sure that's done
2021-02-24 17:23:47 +01:00
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
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
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
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