TJ DeVries
aa48c1c724
Merge pull request #12739 from vigoux/ts-refactor-predicates
...
treesitter: refactor
2020-08-14 08:33:50 -04:00
Thomas Vigouroux
6a8dcfab4b
treesitter: allow to force predicate addition
2020-08-13 20:40:40 +02:00
Thomas Vigouroux
5900c99b7c
treesitter: update docs on predicates
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
9564803d1a
treesitter: add predicate negation
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
d7b12e58df
treesitter: add and test vim-match? predicate
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
58e37d7df8
treesitter: add contains? predicate
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
18c0e77528
treesitter(docs): update and refresh docs
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
613068071e
treesitter: refactor and use lua regexes
2020-08-13 20:30:15 +02:00
Matthieu Coudron
602e7505e2
Merge pull request #12621 from Shougo/vim-8.1.1564
...
[RDY] vim-patch:8.1.1564, 1570, 1623, 1712 : sign column takes up space
2020-08-09 16:19:11 +02:00
Patrice Peterson
1869f86e35
Remove unused function ( #12719 )
2020-08-08 23:49:44 +02:00
Anmol Sethi
7f49594813
man.vim: Add - to 'iskeyword' ( #12598 )
...
Pressing K on manpages with - in their name will now work.
I noticed this the manpages of https://github.com/cli/cli
2020-08-08 12:48:33 -04:00
Jan Edmund Lazo
1123a979d0
vim-patch:8.1.0862: no verbose version of character classes
...
Problem: No verbose version of character classes.
Solution: Add [:ident:], [:keyword:] and [:fname:]. (Ozaki Kiichi,
closes vim/vim#1373 )
221cd9f4dd
2020-08-02 12:00:02 -04:00
Jan Edmund Lazo
45b91711e4
vim-patch:8.2.1292: AIDL filetype not recognized
...
Problem: AIDL filetype not recognized.
Solution: Add filetype detection. (Dominique Pellé, closes vim/vim#6533 )
2afc3b4f77
2020-08-02 12:00:02 -04:00
Andreas Johansson
82bfdbfe5c
Revert "lsp: Fix text edits with the same start position ( #12434 )" ( #12564 )
...
This reverts commit 44fe8828f0
.
2020-07-30 13:37:19 -04:00
Shougo Matsushita
d3eddcf630
vim-patch:8.1.1564: sign column takes up space
...
Problem: Sign column takes up space. (Adam Stankiewicz)
Solution: Optionally put signs in the number column. (Yegappan Lakshmanan,
closes vim/vim#4555 , closes vim/vim#4515 )
394c5d8870
2020-07-23 10:29:36 +09:00
Matthieu Coudron
b059fb5c67
Merge pull request #12654 from cbarrete/nomodifiable-hover
...
LSP: make the hover window nomodifiable
2020-07-21 19:50:33 +02:00
Anmol Sethi
a6917f840d
man.vim: Simplify man#init to reduce load time ( #12482 )
...
I removed the SunOS stuff since no one uses SunOS and I've never tested
it on there.
I removed the section_flag init as we can just use -S instead of -s
and -S is used by every implementation as far as I know.
This brings man#init's time from 50-70ms to 15-20ms for me.
Closes #12318
Related #6766
Related #6815
2020-07-21 11:46:42 -04:00
Matthieu Coudron
459800db43
Merge pull request #12575 from cbarrete/vim-8.2.0935
...
[RFC] vim-patch:8.2.{0935,0937}
2020-07-20 22:04:30 +02:00
Cédric Barreteau
fd6361278b
Make the window nomodifiable
when it's created
2020-07-20 20:16:46 +02:00
Cédric Barreteau
8bb2c3087a
LSP: make the hover window nomodifiable
2020-07-20 20:16:46 +02:00
cbarrete
56f3b95180
doc: Add documentation for some vim.lsp.buf
functions ( #12552 )
...
* Add documentation for some `vim.lsp.buf` functions
* Add inline Lua documentation
* Use generated documentation for LSP buffer functions
Co-authored-by: Cédric Barreteau <>
2020-07-19 17:16:12 -04:00
David Lukes
33837745bb
Fix / improve report messages ( #12396 )
2020-07-19 22:37:50 +02:00
Matthieu Coudron
e1d1c413f7
Merge pull request #12480 from nhooyr/mansect-trim
...
man.vim: Refactor verify_exists to unset $MANSECT as needed
2020-07-19 21:55:12 +02:00
Jan Edmund Lazo
93f2dc0d03
vim-patch:8.2.0893: assert_equalfile() does not take a third argument
...
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
fb517bac23
2020-07-19 11:40:34 -04:00
cbarrete
08efa7037e
lsp: Add support for call hierarchies ( #12556 )
...
* LSP: Add support for call hierarchies
* LSP: Add support for call hierarchies
* LSP: Add support for call hierarchies
* LSP: Jump to call location
Jump to the call site instead of jumping to the definition of the
caller/callee.
* LSP: add tests for the call hierarchy callbacks
* Fix linting error
Co-authored-by: Cédric Barreteau <>
2020-07-18 15:10:09 -04:00
Cédric Barreteau
6420615e3f
vim-patch:8.2.0935: flattening a list with existing code is slow
...
Problem: Flattening a list with existing code is slow.
Solution: Add flatten(). (Mopp, closes vim/vim#3676 )
077a1e670a
2020-07-15 20:27:20 +02:00
Thomas Vigouroux
341e139992
treesitter: add parser on_lines callbacks
2020-07-10 17:16:24 +02:00
Thomas Vigouroux
0f7eaa3555
treesitter: cache the capture hl relation
2020-07-10 17:16:24 +02:00
Thomas Vigouroux
c5119dbad6
treesitter: use change calbacks on redraw
2020-07-10 17:16:23 +02:00
Thomas Vigouroux
529251d5e4
treesitter: call bufload before parsing ( #12603 )
2020-07-10 09:33:27 -04:00
TJ DeVries
b39edb5b60
doc: Add information about lua function calls ( #12574 )
2020-07-08 10:42:34 -04:00
Christian Clason
91572ddad1
doc: mention that defer_fn applies schedule_wrap ( #12601 )
2020-07-07 10:55:40 +02:00
Matthieu Coudron
e49fc4ba1f
Merge pull request #12538 from janlazo/vim-8.2.1055
...
vim-patch:8.1.{93,1372},8.2.{1055,1060,1089,1095,1104}
2020-07-06 23:31:24 +02:00
Christian Clason
4ab7bbf3ea
lua: add options to highlight.on_yank ( #12549 )
...
NOTE: Configuration options have changed for highlight.on_yank.
Check help for |:help highlight.on_yank()|
2020-07-05 21:30:12 -04:00
Christian Clason
f9579d473e
lsp: add optional vertical padding, maximal size to floats ( #12444 )
...
* add vertical padding to floats
* add max_width, max_height option to float methods
* lint
* lintlint
* guard against nil wrap_at
2020-07-05 21:09:52 -04:00
Jan Edmund Lazo
10c563577c
vim-patch:8.1.0093: non-MS-Windows: Cannot interrupt gdb when program is running
...
Problem: non-MS-Windows: Cannot interrupt gdb when program is running.
Solution: Only use debugbreak() on MS-Windows.
2ed890f1f8
2020-07-04 12:10:04 -04:00
Jan Edmund Lazo
f01bb307fd
vim-patch:8.2.1060: not all elinks files are recognized
...
Problem: Not all elinks files are recognized.
Solution: Just check for "elinks.conf". (Guido Cella, closes vim/vim#6337 )
5f36d5fbb8
2020-07-04 10:05:34 -04:00
Jan Edmund Lazo
edaff441de
vim-patch:8.1.1372: when evaluating 'statusline' the current window is unknown
...
Problem: When evaluating 'statusline' the current window is unknown.
(Daniel Hahler)
Solution: Set "g:actual_curwin" for %{} items. Set "g:statusline_winid"
when evaluationg %!. (closes vim/vim#4406 , closes vim/vim#3299 )
1c6fd1e100
2020-07-04 10:05:34 -04:00
Jan Edmund Lazo
43a2e5fe4b
vim-patch:8.2.1055: no filetype set for pacman config files
...
Problem: No filetype set for pacman config files.
Solution: Recognize pacman.conf and *.hook. (Guido Cella, closes vim/vim#6335 )
73b4465ba7
2020-07-04 10:05:34 -04:00
Matthieu Coudron
bd5f0e9695
Merge pull request #12531 from BK1603/autoread-tui
...
Autoread now works in TUI too. The checktimestamp test is run at most once every 2 seconds not to poll too much and also because it doesn't make sense on some filesystems. A solution based on filesystem notifications should arrive soon.
2020-07-04 15:27:32 +02:00
TJ DeVries
7b529e7912
doc: fix scripts and regenerate ( #12506 )
...
* Fix some small doc issues
* doc: fixup
* doc: fixup
* Fix lint and rebase
* Remove bad advice
* Ugh, stupid mpack files...
* Don't let people include these for now until they specifically want to
* Prevent duplicate tag
2020-07-02 07:09:17 -04:00
Anmol Sethi
2844cd54da
docs: Describe how to escape keycodes with nvim_feedkeys ( #12484 )
...
Closes #12297
2020-07-01 21:57:03 -04:00
BK1603
22828f59bb
Added healt check for tmux focus events
2020-07-02 04:40:35 +05:30
Mathias Fußenegger
554b21261e
lsp: Use nvim_buf_get_lines in locations_to_items and add more tests ( #12357 )
...
* LSP: Add tests & use nvim_buf_get_lines in locations_to_items
This is to add support for cases where the server returns a URI in the
locations that does not have a file scheme but needs to be loaded via a
BufReadCmd event.
* LSP: Don't iterate through all lines in locations_to_items
* fixup! LSP: Don't iterate through all lines in locations_to_items
* fixup! fixup! LSP: Don't iterate through all lines in locations_to_items
* fixup! fixup! fixup! LSP: Don't iterate through all lines in locations_to_items
2020-06-30 11:48:04 -04:00
Matthieu Coudron
1920ba4b55
Merge pull request #12491 from vigoux/treesitter-set-ranges
...
[RDY] Treesitter set ranges
2020-06-30 00:02:46 +02:00
Thomas Vigouroux
b652f74ca3
treesitter: use nodes to mark ranges
2020-06-29 22:21:06 +02:00
Thomas Vigouroux
558893b1b9
treesitter: add some documentation for parsers
2020-06-29 22:21:06 +02:00
Thomas Vigouroux
333f3f19db
treesitter: add set_included_ranges to the parser
...
This is the first step towards language injection using treesitter.
2020-06-29 22:21:06 +02:00
Matthieu Coudron
d5bbaf92c1
doc: fix wordcount description
...
was fixed in vim patch c572da5f67aa5cdbbc127fc6f1d0a42e38468325
and forgot in corresponding vim patch 8c3377ee76
.
2020-06-29 20:08:20 +02:00
cbarrete
48ac77a14c
LSP: Set current name as default rename text ( #12553 )
...
Since we don't know what the server considers to be a symbol, `cword` is
the best bet in most cases.
Co-authored-by: Cédric Barreteau <>
2020-06-27 20:10:19 +02:00