Mathias Fußenegger
981ae83fad
fix(docs): update lsp.rpc.start docs to match return value changes ( #20003 )
...
Follow up to https://github.com/neovim/neovim/pull/19916
2022-08-30 13:14:27 +02:00
Mathias Fußenegger
0368ca70c4
docs(lsp): replace formatting_sync example in lsp-faq ( #19994 )
...
`formatting_sync` is deprecated
2022-08-30 13:14:09 +02:00
bfredl
f9c183c0ca
Merge pull request #19897 from bfredl/statushl
...
fix(highlight): set the window namespace when redrawing statusline
2022-08-30 10:59:58 +02:00
bfredl
6ab2bf6819
fix(highlight): set the window namespace when redrawing statusline
2022-08-30 10:28:11 +02:00
zeertzjq
568737d5b3
feat(tui): recognize sidescroll events ( #19992 )
...
Ref https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Other-buttons
This works in xterm and kitty.
CSI < 66 ; x ; y M sequence is for ScrollWheelLeft.
CSI < 67 ; x ; y M sequence is for ScrollWheelRight.
2022-08-30 10:55:00 +08:00
zeertzjq
7f20d61e00
Merge pull request #19999 from zeertzjq/vim-9.0.0320
...
vim-patch:9.0.0320: command line type of CmdlineChange differs from getcmdtype()
2022-08-30 07:07:50 +08:00
zeertzjq
e6e9879cb3
vim-patch:9.0.0320: command line type of CmdlineChange differs from getcmdtype()
...
Problem: Command line type of CmdlineChange differs from getcmdtype().
Solution: Use the same type. (closes vim/vim#11005 )
54acb90d9e
2022-08-30 06:33:09 +08:00
zeertzjq
2c83d7b2dd
refactor: move cmdline functions to ex_getln.c
2022-08-30 06:32:08 +08:00
zeertzjq
f58a979599
vim-patch:9.0.0318: clearing screen causes flicker ( #19993 )
...
Problem: Clearing screen causes flicker.
Solution: Do not clear but redraw in more cases. Add () to "wait_return".
13608d851a
Only 2 lines of actual code change.
2022-08-30 06:26:06 +08:00
bfredl
e78e369a9d
Merge pull request #19997 from bfredl/lastsep
...
fix(redraw): handle switching to a tabpage with larger p_ch value
2022-08-29 23:52:47 +02:00
bfredl
8fd66ff5c5
fix(redraw): handle switching to a tabpage with larger p_ch value
2022-08-29 21:58:07 +02:00
Raphael
efacb6e974
fix(lsp): clean the diagnostic cache when buffer delete ( #19449 )
...
Co-authored-by: Gregory Anders <greg@gpanders.com>
2022-08-29 19:09:14 +02:00
bfredl
68efac3683
Merge pull request #19973 from dundargoc/refactor/char_u/3
...
refactor: replace char_u with char 3: revenge of the unsigned
2022-08-29 18:46:38 +02:00
Mathias Fußenegger
126fe7fbc9
Merge pull request #19916 from mfussenegger/lsp-tcp
...
Adds TCP support for lsp.
Usage example:
```
vim.lsp.start({ name = 'godot', cmd = vim.lsp.rpc.connect('127.0.0.1', 6008) })
```
2022-08-29 18:26:14 +02:00
Dundar Göc
58f30a326f
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-29 15:48:56 +02:00
zeertzjq
92bc11a891
vim-patch:9.0.0316: screen flickers when 'cmdheight' is zero ( #19991 )
...
Problem: Screen flickers when 'cmdheight' is zero.
Solution: Redraw over existing text instead of clearing.
f73e5ba56f
2022-08-29 20:22:15 +08:00
bfredl
e6af1cf250
Merge pull request #19971 from dundargoc/refactor/remove-casts
...
refactor: remove redundant casts
2022-08-29 13:23:43 +02:00
bfredl
5fe6bde296
Merge pull request #19961 from dundargoc/refactor/char_u/2
...
refactor: replace char_u with char 2: electric chaaralo
2022-08-29 12:50:22 +02:00
bfredl
f05cc672e3
Merge pull request #19975 from bfredl/chartabsize
...
refactor(plines): use a struct for chartabsize state
2022-08-29 12:48:51 +02:00
bfredl
ea4e9c71cc
refactor(plines): use a struct for chartabsize state
...
This is a refactor extracted from vim-patch 9.0.0067: cannot show virtual text
The logic for inline virtual text is going to be different in nvim than
text property based text in vim, but this refactor is still useful,
as calculation of displayed linesize is going to be stateful in a
similar way.
2022-08-29 12:05:34 +02:00
Shougo
253f0ffd8d
vim-patch:9.0.0285: it is not easy to change the command line from a plugin ( #19979 )
...
vim-patch:9.0.0285: it is not easy to change the command line from a plugin
Problem: It is not easy to change the command line from a plugin.
Solution: Add setcmdline(). (Shougo Matsushita, closes vim/vim#10869 )
07ea5f1509
2022-08-29 13:11:52 +08:00
zeertzjq
1dcaa75a65
fix(events): triggered WinScrolled when only skipcol changed ( #19972 )
...
fix(events): trigger WinScrolled when only skipcol changed
vim-patch:9.0.0304: WinScrolled is not triggered when only skipcol changes
Problem: WinScrolled is not triggered when only skipcol changes.
Solution: Add w_last_skipcol and use it. (closes vim/vim#10998 )
670ab0334b
2022-08-29 06:16:20 +08:00
zeertzjq
b21980bd60
fix(keywordprg): default to :help if set to empty string ( #19983 )
2022-08-29 05:58:32 +08:00
Mathias Fussenegger
60ec6e34d5
feat(lsp): add tcp support
2022-08-28 14:07:53 +02:00
Mathias Fussenegger
46bb34e26b
refactor(lsp): extract rpc client from rpc.start
...
Makes the previously inner functions re-usable for a TCP client
2022-08-28 14:07:53 +02:00
Mathias Fussenegger
7d3e4aee6a
refactor(lsp): encapsulate rpc uv handle
...
To prepare for different transports like TCP where the handle won't have
a kill method.
2022-08-28 14:07:53 +02:00
Mathias Fussenegger
f9641d1ac6
refactor(lsp): factor out read_loop function
2022-08-28 14:07:53 +02:00
Raphael
88c32b5eba
fix(l10n): improve zh_CN and zh_TW translations ( #19969 )
2022-08-28 17:07:24 +08:00
zeertzjq
7a9b593796
vim-patch:8.2.3813: confusing error when using :cc without error list ( #19978 )
...
Problem: confusing error when using :cc without error list. (Gary Johnson)
Solution: Give the "no errors" error.
a5d78d1f11
Cherry-pick e_quickfix -> e_no_errors rename from patch 8.2.3190.
2022-08-28 07:22:27 +08:00
Dundar Göc
691f4715c0
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-27 17:59:43 +02:00
Dundar Göc
20305494f8
refactor: remove redundant casts
2022-08-27 14:26:18 +02:00
dundargoc
09c6ce8c4e
docs: fix typos ( #19798 )
...
Co-authored-by: adrian5 <adrian5@users.noreply.github.com>
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2022-08-27 15:56:58 +08:00
zeertzjq
523600ea6c
vim-patch:8.2.1269: language and locale code spread out ( #19964 )
...
Problem: Language and locale code spread out.
Solution: Move relevant code to src/locale.c. (Yegappan Lakshmanan,
closes vim/vim#6509 )
054f14bbe5
Also remove redundant <locale.h> includes.
2022-08-27 11:26:47 +08:00
zeertzjq
814c173b9d
vim-patch:8.2.0660: the search.c file is a bit big ( #19963 )
...
Problem: The search.c file is a bit big.
Solution: Split off the text object code to a separate file. (Yegappan
Lakshmanan, closes vim/vim#6007 )
ed8ce057b7
2022-08-27 09:58:25 +08:00
zeertzjq
58b29e344c
Merge pull request #19962 from zeertzjq/vim-9.0.0278
...
vim-patch:9.0.{0278,0279,0283,0284}: cmdline completion patches
2022-08-27 07:33:29 +08:00
zeertzjq
608134794d
vim-patch:9.0.0284: using static buffer for multiple completion functions
...
Problem: Using static buffer for multiple completion functions.
Solution: Use one buffer in expand_T.
5ff595d9db
2022-08-27 07:03:07 +08:00
zeertzjq
2676555b22
vim-patch:9.0.0283: cannot complete "syn list @cluster"
...
Problem: Cannot complete "syn list @cluster".
Solution: Recognize and handle "list @". (Björn Linse, closes vim/vim#10990 )
af9a6002e0
2022-08-27 07:03:07 +08:00
zeertzjq
cc2c8be481
vim-patch:9.0.0279: the tiny version has the popup menu but not 'wildmenu'
...
Problem: The tiny version has the popup menu but not 'wildmenu'.
Solution: Graduate the wildmenu feature.
5416232707
N/A patches for version.c:
vim-patch:9.0.0281: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
58dcbf1c65
2022-08-27 07:03:07 +08:00
zeertzjq
e70ef80f77
vim-patch:9.0.0278: the +wildignore feature is nearly always available
...
Problem: The +wildignore feature is nearly always available.
Solution: Graduate +wildignore for consistency.
074fbd4131
2022-08-27 07:03:06 +08:00
zeertzjq
d5e0883712
Merge pull request #19955 from zeertzjq/vim-9.0.0272
...
vim-patch:9.0.{0272,0274,0275,0276}: buffer loading fixes
2022-08-27 06:32:41 +08:00
zeertzjq
d813ef0097
vim-patch:9.0.0276: 'buftype' values not sufficiently tested
...
Problem: 'buftype' values not sufficiently tested.
Solution: Add and extend tests with 'buftype' values. (closes vim/vim#10988 )
93f72cc119
"terminal" and "popup" buffer types cannot be tested, and commenting
them out causes an error, so just remove them.
2022-08-27 06:12:52 +08:00
zeertzjq
45c23a757c
vim-patch:9.0.0275: BufEnter not triggered when using ":edit" in "nofile" buffer
...
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer.
Solution: Let readfile() return NOTDONE. (closes vim/vim#10986 )
a9b5b85068
2022-08-27 06:12:52 +08:00
zeertzjq
52f00a6c4d
vim-patch:9.0.0274: netrw plugin does not show remote files
...
Problem: Netrw plugin does not show remote files.
Solution: Do read a file when 'buftype' is "acwrite". (closes vim/vim#10983 )
c312619f7c
2022-08-27 06:12:52 +08:00
zeertzjq
900a151bf5
vim-patch:9.0.0272: BufReadCmd not triggered when loading a "nofile" buffer
...
Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim
Kim)
Solution: Call readfile() but bail out before reading a file.
(closes vim/vim#10983 )
b1d2c8116c
2022-08-27 06:12:52 +08:00
bfredl
b0e052a8b3
Merge pull request #19957 from dundargoc/refactor/char_u/1
...
refactor: replace char_u with char
2022-08-26 23:07:56 +02:00
Dundar Göc
3952770360
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-26 22:24:28 +02:00
Christian Clason
6a13b8fa54
vim-patch:7dd543246a4c ( #19960 )
...
Update runtime files
7dd543246a
2022-08-26 19:58:10 +02:00
zeertzjq
0b72e23bf1
vim-patch:8.2.0674: some source files are too big ( #19959 )
...
Problem: Some source files are too big.
Solution: Move text formatting functions to a new file. (Yegappan
Lakshmanan, closes vim/vim#6021 )
11abd09521
Cherry-pick set_can_cindent() from patch 8.1.2062.
Cherry-pick global old_indent from patch 8.2.2127.
2022-08-26 22:37:20 +08:00
bfredl
2ecb4076df
Merge pull request #19931 from bfredl/scopedhl
...
feat(highlight)!: use scoped @foo.bar.special groups for tree-sitter highlight
2022-08-26 14:43:58 +02:00
bfredl
b04ef7f6b9
fix(treesitter): make it get_captures_at_position
2022-08-26 13:57:31 +02:00