aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* Revert "lsp: Fix text edits with the same start position (#12434)" (#12564)Andreas Johansson2020-07-30
| | | This reverts commit 44fe8828f06a22bc9aa3617a6fd8aae447a838de.
* Merge pull request #12654 from cbarrete/nomodifiable-hoverMatthieu Coudron2020-07-21
|\ | | | | LSP: make the hover window nomodifiable
| * Make the window `nomodifiable` when it's createdCédric Barreteau2020-07-20
| |
| * LSP: make the hover window nomodifiableCédric Barreteau2020-07-20
| |
* | man.vim: Simplify man#init to reduce load time (#12482)Anmol Sethi2020-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #12575 from cbarrete/vim-8.2.0935Matthieu Coudron2020-07-20
|\ \ | |/ |/| [RFC] vim-patch:8.2.{0935,0937}
| * vim-patch:8.2.0935: flattening a list with existing code is slowCédric Barreteau2020-07-15
| | | | | | | | | | | | Problem: Flattening a list with existing code is slow. Solution: Add flatten(). (Mopp, closes vim/vim#3676) https://github.com/vim/vim/commit/077a1e670ad69ef4cefc22103ca6635bd269e764
* | doc: Add documentation for some `vim.lsp.buf` functions (#12552)cbarrete2020-07-19
| | | | | | | | | | | | | | | | | | * 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 <>
* | Fix / improve report messages (#12396)David Lukes2020-07-19
| |
* | Merge pull request #12480 from nhooyr/mansect-trimMatthieu Coudron2020-07-19
|\ \ | | | | | | man.vim: Refactor verify_exists to unset $MANSECT as needed
| * | man.vim: Remove unnecessary codeAnmol Sethi2020-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Not sure why this was added in https://github.com/neovim/neovim/commit/94f4469638590ca5cc724ab6459f2cfc78c621a4 It doesn't seem to do anything and I can't reproduce the linked issue with this patch so I think it's all working now. cc @justinmk
| * | man.vim: Fix tagfunc to respect b:man_default_sectsAnmol Sethi2020-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, kudos to @zsugabubus for fixing a related issue in #12417 This also prevents any sorting of the paths from man. We need to respect the order we get from it otherwise you end up loading /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man/man1/ls.1 on MacOS instead of /usr/share/man/man1/ls.1
| * | man.vim: Refactor verify_exists to unset $MANSECT as neededAnmol Sethi2020-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also cleaned it up a little and made it faster. Closes #9159 and #9271 Also changes man#extract_sect_and_name_ref to only return a single section at a time. This fixes a bug in its usage in man#goto_tag where get_paths would be called with multiple sections and it does not support that. I noticed that our tagfunc doesn't obey b:man_default_sects and I'll fix that next.
* | | vim-patch:8.2.0893: assert_equalfile() does not take a third argumentJan Edmund Lazo2020-07-19
| | | | | | | | | | | | | | | | | | Problem: Assert_equalfile() does not take a third argument. Solution: Implement the third argument. (Gary Johnson) https://github.com/vim/vim/commit/fb517bac2384798bb5142ed1f75f965f93984c0a
* | | lsp: Add support for call hierarchies (#12556)cbarrete2020-07-18
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <>
* | treesitter: add parser on_lines callbacksThomas Vigouroux2020-07-10
| |
* | treesitter: cache the capture hl relationThomas Vigouroux2020-07-10
| |
* | treesitter: use change calbacks on redrawThomas Vigouroux2020-07-10
| |
* | treesitter: call bufload before parsing (#12603)Thomas Vigouroux2020-07-10
| |
* | doc: Add information about lua function calls (#12574)TJ DeVries2020-07-08
| |
* | doc: mention that defer_fn applies schedule_wrap (#12601)Christian Clason2020-07-07
| |
* | Merge pull request #12538 from janlazo/vim-8.2.1055Matthieu Coudron2020-07-06
|\ \ | | | | | | vim-patch:8.1.{93,1372},8.2.{1055,1060,1089,1095,1104}
| * | vim-patch:8.1.0093: non-MS-Windows: Cannot interrupt gdb when program is runningJan Edmund Lazo2020-07-04
| | | | | | | | | | | | | | | | | | Problem: non-MS-Windows: Cannot interrupt gdb when program is running. Solution: Only use debugbreak() on MS-Windows. https://github.com/vim/vim/commit/2ed890f1f810f977ec6a235efd8bf58adddcd0e7
| * | vim-patch:8.2.1060: not all elinks files are recognizedJan Edmund Lazo2020-07-04
| | | | | | | | | | | | | | | | | | Problem: Not all elinks files are recognized. Solution: Just check for "elinks.conf". (Guido Cella, closes vim/vim#6337) https://github.com/vim/vim/commit/5f36d5fbb836e6fdeb9e3b2c26edb88e45150db4
| * | vim-patch:8.1.1372: when evaluating 'statusline' the current window is unknownJan Edmund Lazo2020-07-04
| | | | | | | | | | | | | | | | | | | | | | | | 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) https://github.com/vim/vim/commit/1c6fd1e100fd0457375642ec50d483bcc0f61bb2
| * | vim-patch:8.2.1055: no filetype set for pacman config filesJan Edmund Lazo2020-07-04
| | | | | | | | | | | | | | | | | | Problem: No filetype set for pacman config files. Solution: Recognize pacman.conf and *.hook. (Guido Cella, closes vim/vim#6335) https://github.com/vim/vim/commit/73b4465ba7f170c5a1701ad908144970e758b1f5
* | | lua: add options to highlight.on_yank (#12549)Christian Clason2020-07-05
| | | | | | | | | | | | | | | NOTE: Configuration options have changed for highlight.on_yank. Check help for |:help highlight.on_yank()|
* | | lsp: add optional vertical padding, maximal size to floats (#12444)Christian Clason2020-07-05
|/ / | | | | | | | | | | | | | | | | | | | | * add vertical padding to floats * add max_width, max_height option to float methods * lint * lintlint * guard against nil wrap_at
* | Merge pull request #12531 from BK1603/autoread-tuiMatthieu Coudron2020-07-04
|\ \ | | | | | | 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.
| * | Added healt check for tmux focus eventsBK16032020-07-02
| | |
* | | doc: fix scripts and regenerate (#12506)TJ DeVries2020-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | docs: Describe how to escape keycodes with nvim_feedkeys (#12484)Anmol Sethi2020-07-01
| | | | | | | | | Closes #12297
* | | lsp: Use nvim_buf_get_lines in locations_to_items and add more tests (#12357)Mathias Fußenegger2020-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Merge pull request #12491 from vigoux/treesitter-set-rangesMatthieu Coudron2020-06-30
|\ \ \ | | | | | | | | [RDY] Treesitter set ranges
| * | | treesitter: use nodes to mark rangesThomas Vigouroux2020-06-29
| | | |
| * | | treesitter: add some documentation for parsersThomas Vigouroux2020-06-29
| | | |
| * | | treesitter: add set_included_ranges to the parserThomas Vigouroux2020-06-29
| | | | | | | | | | | | | | | | This is the first step towards language injection using treesitter.
* | | | doc: fix wordcount descriptionMatthieu Coudron2020-06-29
| | | | | | | | | | | | | | | | | | | | was fixed in vim patch c572da5f67aa5cdbbc127fc6f1d0a42e38468325 and forgot in corresponding vim patch 8c3377ee76e5cc4f5a4228f216bde1d03b496d69.
* | | | LSP: Set current name as default rename text (#12553)cbarrete2020-06-27
| | | | | | | | | | | | | | | | | | | | | | | | 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 <>
* | | | Merge pull request #12252 from dlukes/formatting-syncHirokazu Hata2020-06-27
|\ \ \ \ | |_|/ / |/| | |
| * | | lsp: Add sync variant of LSP formattingDavid Lukes2020-06-22
| | | | | | | | | | | | | | | | | | | | Also, factor out a `vim.lsp.util.get_effective_tabstop()` helper and add tests for it.
* | | | Merge pull request #12133 from bradking/syntax-foldJames McCoy2020-06-24
|\ \ \ \
| * | | | vim-patch:8.2.0865 syntax: Add command to control how foldlevel is computedBrad King2020-06-23
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Syntax foldlevel is taken from the start of the line. Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line. https://github.com/vim/vim/commit/e35a52aee718c881bdfa69a47a1068df6ab6c60a With `foldmethod=syntax` the foldlevel of a line is computed based on syntax items on the line. Previously we always used the level of the syntax item containing the start of the line. This works well in cases such as: if (...) { ... } else if (...) { ... } else { ... } which folds like this: +--- 3 lines: if (...) {--------------------------- +--- 3 lines: else if (...) {---------------------- +--- 3 lines: else {------------------------------- However, the code: if (...) { ... } else if (...) { ... } else { ... } folds like this: +--- 7 lines: if (...) {--------------------------- We can make the latter case fold like this: +--- 2 lines: if (...) {--------------------------- +--- 2 lines: } else if (...) {-------------------- +--- 3 lines: } else {----------------------------- by choosing on each line the lowest fold level that is followed by a higher fold level. Add a syntax command :syntax foldlevel [start | minimum] to choose between these two methods of computing the foldlevel of a line.
* | | | vim-patch:8.2.1044: not all systemd file types are recognized (#12527)Jan Edmund Lazo2020-06-24
| | | | | | | | | | | | | | | | | | | | Problem: Not all systemd file types are recognized. Solution: Match several more files. (Guido Cella, closes vim/vim#6319) https://github.com/vim/vim/commit/ef6d86c173becdf82b7a9a1329342c9368340def
* | | | lsp: when apply text edits, set buflisted on buffers (#12489)francisco souza2020-06-23
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The client creates buffers on the fly to be able to apply text edits on files that weren't previously open, which is great, but it uses the bufadd() function, which creates unlisted buffers and can lead to a weird experience in the text editor. Setting the buffer to buflisted fixes this. Closes #12488. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
* | | vim-patch:8.2.0983: SConstruct file type not recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | Problem: SConstruct file type not recognized. Solution: Use python for SConstruct files. (Roland Hieber) https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
* | | vim-patch:8.2.0980: raku file extension not recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | Problem: Raku file extension not recognized. (Steven Penny) Solution: Recognize .raku and .rakumod. (closes vim/vim#6255) https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb
* | | vim-patch:8.2.0954: not all desktop files are recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | Problem: Not all desktop files are recognized. Solution: Add the *.directory pattern. (Eisuke Kawashima, closes vim/vim#3317) https://github.com/vim/vim/commit/f1f0ff9557353c9a452aac8540411a88cf2da47c
* | | vim-patch:8.1.1977: terminal debugger plugin may hangJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | Problem: Terminal debugger plugin may hang. Solution: Wait longer when still reading symbols. https://github.com/vim/vim/commit/19c8fe1925f4f7ffa1cc46e64d8bb8b1665ac437
* | | vim-patch:8.2.0930: script filetype detection trips over env -S argumentJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | Problem: Script filetype detection trips over env -S argument. Solution: Remove "-S" and "--ignore-environment". (closes vim/vim#5013) Add tests. https://github.com/vim/vim/commit/b5e18f29fac9253b0ccf1fde5e74bff72fa1ba60