aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* lsp: Make apply_text_edits non-ASCII safe (#12223)Christian Clason2020-05-08
| | | | | | | | | | | | | | | * Make apply_text_edits non-ASCII safe Use `vim.str_byteindex` to correct starting and ending positions for text edits if the line contains non-ASCII characters. Fixes #12221 * text_edit may be applied to other buffers * make sure the buffer is loaded * add comments * add test for non-ASCII edits
* lsp: Handle unknown CompletionItemKind and SymbolKind (#12257)Hirokazu Hata2020-05-07
| | | | | | | | | | | * lsp: handle kinds not specified in protocol fix: #12200 If the client set "symbolKind.valueSet", the client must handle it properly even if it receives a value outside the specification. * test: add lsp.util.{get_completion_item_kind_name, get_symbol_kind_name} test case * lsp: make lsp.util.{get_completion_item_kind_name, get_symbol_kind_name} private
* lua: Add buffer, window and tab accessors (#12268)TJ DeVries2020-05-07
| | | | | * Add buffer, window and tab accessors * Fix deletion and add tests
* lsp: set buflisted when jumping to location (#12253)Gabriel Sanches2020-05-07
|
* Merge #12203 from janlazo/vim-8.2.0648Justin M. Keyes2020-05-05
|\ | | | | vim-patch:8.1.{800,868,1581},8.2.{648,649,663,678,681,688,691,692}
| * vim-patch:8.2.0692: startup test fails on MS-WindowsJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Startup test fails on MS-Windows. Solution: Allow for any path. https://github.com/vim/vim/commit/4515bcdec8f3ba54f9d671cc37b9c9b3e19ea999
| * vim-patch:8.2.0691: startup test failsJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Startup test fails. Solution: Adjust expected output from -V2 argument. https://github.com/vim/vim/commit/7779ee30d912e9dd5bd2371f8b27057bd249d53c
| * vim-patch:8.2.0688: output clobbered if setting 'verbose' to see shell commandsJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Output clobbered if setting 'verbose' to see shell commands. Solution: Only output "Searching for" when 'verbose' is 11 or higher. https://github.com/vim/vim/commit/647a530b33d9d767f591159c24c62de48e57dad7
| * vim-patch:8.2.0681: pattern for 'hlsearch' highlighting may leakJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | Problem: Pattern for 'hlsearch' highlighting may leak. (Dominique Pelle) Solution: Call end_search_hl() to make sure the previous pattern is freed. (closes vim/vim#6028) https://github.com/vim/vim/commit/0b6849e9e302286e906d97e4ba017dd66561a9ce
| * vim-patch:8.2.0678: rare crash for popup menuJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Rare crash for popup menu. Solution: Check for NULL pointer. (Nobuhiro Takasaki, closes vim/vim#6027) https://github.com/vim/vim/commit/d58a662f44dc11475f4cf5922a948635da934cc4
| * vim-patch:8.2.0663: not all systemd temp files are recognizedJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Not all systemd temp files are recognized. Solution: Add two more patterns. (Jamie Macdonald, closes vim/vim#6003) https://github.com/vim/vim/commit/512fe833c3988bfe0de22135aef67faf51927a0e
| * vim-patch:8.1.0868: crash if triggering garbage collector after a function callJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | | | Problem: Crash if triggering garbage collector after a function call. (Michael Henry) Solution: Don't call the garbage collector right away, do it later. (closes vim/vim#3894) https://github.com/vim/vim/commit/889da2f2438c8168f9a25dc776360b81109bad44
| * vim-patch:8.1.0800: may use a lot of memory when a function refers itselfJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | | | Problem: May use a lot of memory when a function creates a cyclic reference. Solution: After saving a funccal many times, invoke the garbage collector. (closes vim/vim#3835) https://github.com/vim/vim/commit/4456ab527a6a5faae9287f3bd2e52cc18966cfb0
| * vim-patch:8.1.1581: shared functions for testing are disorganisedJan Edmund Lazo2020-05-03
| | | | | | | | | | | | Problem: Shared functions for testing are disorganised. Solution: Group finctions in script files. (Ozaki Kiichi, closes vim/vim#4573) https://github.com/vim/vim/commit/7a39dd7f00239059ce34660611589b26126a550c
| * vim-patch:8.2.0649: undo problem whn an InsertLeave autocommand resets undoJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | Problem: Undo problem whn an InsertLeave autocommand resets undo. (Kutsan Kaplan) Solution: Do not create a new undo block when leaving Insert mode. https://github.com/vim/vim/commit/db93495d276642f63f80471fbcb900b9aa1e9e42
| * vim-patch:8.2.0648: semicolon search does not work in first lineJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | Problem: Semicolon search does not work in first line. Solution: Allow the cursor to be in line zero. (Christian Brabandt, closes vim/vim#5996) https://github.com/vim/vim/commit/0e71704b77a9891ccae9f5a9c7429e933078f232
* | vim-patch:8.1.1120: cannot easily get directory entry matches #12222Hennadii Chernyshchyk2020-05-05
| | | | | | | | | | | | | | Problem: Cannot easily get directory entry matches. Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes vim/vim#2439) https://github.com/vim/vim/commit/543c9b1921d7605498b54afdef518e312f1b4515 closes #12212
* | paste: support replace mode (#11945)Jesse2020-05-05
| | | | | | | | | | | | * paste: support replace mode * Clean up Co-authored-by: Jesse Bakker <git@jessebakker.com>
* | tag: fix problem when tagfunc return value is v:null (#12251)erw72020-05-05
| | | | | | fixes #12250.
* | Merge #12230 'fix :terminal flicker with scrolloff'Justin M. Keyes2020-05-05
|\ \
| * | terminal: disable 'scrolloff' (fixes flicker)Justin M. Keyes2020-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Besides the special-case in get_scrolloff_value(), it makes sense for 'scrolloff' and 'sidescrolloff' to reflect the correct values (for plugins, scripts, …). ref 53d607af9c53accfd634435908fb79061f1212b9 ref #11915 ref #12230
| * | terminal: always return zero from get_scrolloff_value() #12230LawAbidingCactus2020-05-04
|/ / | | | | | | | | | | | | Fixes flicker fix #11072 fix #11915
* | lsp: fix tagstack for location jump #12248Gabriel Sanches2020-05-04
| |
* | LSP: Avoid URI-to-fname conversion for non-file URIs #12243Mathias Fußenegger2020-05-04
| | | | | | Fixes https://github.com/neovim/neovim/issues/12210
* | checkhealth/ruby: fix off-by-one error #12245Booome2020-05-04
| | | | | | Co-authored-by: BodongLiKolmostar <bodong.li@kolmostar.com>
* | funcs: Fix a memory leak in f_expand (#12227)erw72020-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :echo expand('%', v:false, v:true) ==423== 28 bytes in 1 blocks are definitely lost in loss record 124 of 420 ==423== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==423== by 0x2AD09C: try_malloc (memory.c:71) ==423== by 0x2AD0B8: xmalloc (memory.c:105) ==423== by 0x2AE05D: xmallocz (memory.c:182) ==423== by 0x1F7CF4: vim_strnsave (strings.c:68) ==423== by 0x318813: eval_vars (ex_docmd.c:8885) ==423== by 0x34F5FC: f_expand (funcs.c:2058) ==423== by 0x36D023: call_func (eval.c:6419) ==423== by 0x370C28: get_func_tv.lto_priv.707 (eval.c:6150) ==423== by 0x372748: eval7 (eval.c:4326) ==423== by 0x37291A: eval6 (eval.c:4036) ==423== by 0x372BF6: eval5 (eval.c:3884)
* | Merge pull request #12237 from h-michael/vim-nilMatthieu Coudron2020-05-04
|\ \ | |/ |/| lsp: text_document.version may be vim.NIL not nil
| * lsp: add a lsp.util.apply_text_edits test(pending)Hirokazu Hata2020-05-04
| | | | | | | | | | We don't handle non-ASCII characters well in UTF-16. So I add a non-ASCII characters test case.
| * lsp: fix apply_text_document_edit testHirokazu Hata2020-05-04
| | | | | | | | | | | | lsp.util.buf_versions must be set in advance. Use helper.insert to create an anonymous buffer, so create a named buffer for testing without using insert.
| * [LSP] check for vim.NIL and add apply_text_document_edit testsckipp012020-05-01
| |
* | lsp: fixup workspace symbol capabilities (#12233)Christian Clason2020-05-03
| | | | | | use workspace.symbol instead of workspaceSymbol to mimic the lsp spec.
* | Merge pull request #12228 from h-michael/fix-docsyms-to-itemsMatthieu Coudron2020-05-02
|\ \ | | | | | | lsp: fix lsp.util.symbols_to_items with DocumentSymbol has children
| * | lsp: add lsp.util.symbols_to_items testHirokazu Hata2020-05-02
| | |
| * | lsp: fix lsp.util.symbols_to_itemsHirokazu Hata2020-05-02
| | | | | | | | | | | | | | | | | | | | | fix: https://github.com/neovim/neovim/pull/11931#issuecomment-622422581 There was an error in the process of flattening the hierarchical structure. So when DocumentSymbol has children, our client can't handle it correctly.
* | | Merge pull request #12229 from Billy4195/vim-8.1.0814Matthieu Coudron2020-05-02
|\ \ \ | | | | | | | | [RFC] vim-patch:8.1.{814,816}
| * | | vim-patch:8.1.0816: test for 'runtimepath' in session fails on MS-WindowsBilly Su2020-05-02
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Test for 'runtimepath' in session fails on MS-Windows. Solution: Skip the test for now. https://github.com/vim/vim/commit/681b6bc86c8f60473854c0141935c07494528884
| * | | vim-patch:8.1.0814: :mksession cannot handle a very long 'runtimepath'Billy Su2020-05-02
| |/ / | | | | | | | | | | | | | | | | | | | | | Problem: :mksession cannot handle a very long 'runtimepath'. (Timothy Madden) Solution: Expand each part separately, instead of the whole option at once. (Christian Brabandt, closes vim/vim#3466) https://github.com/vim/vim/commit/ed18f2c03ae4786b489943cb575bb781a70356e4
* | | lsp: add workspace/symbol (#12224)Christian Clason2020-05-02
| | | | | | | | | | | | | | | | | | | | | | | | * lsp: add workspace/symbol * refactor symbol callback * set hierarchical symbol support to true * add documentation and default mapping Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
* | | LSP: Support LocationLink (#12231)Christian Clason2020-05-02
|/ / | | | | | | * support LocationLink in callbacks * announce linkSupport in client capabilities
* | version.c: update [ci skip] #12196Marvim the Paranoid Android2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.0621: after running tests asan files may remain vim-patch:8.2.0622: Haiku: GUI does not compile vim-patch:8.2.0630: "make tags" does not cover Haiku GUI file vim-patch:8.2.0631: Haiku file formatted with wrong tabstop vim-patch:8.2.0632: crash when using Haiku vim-patch:8.2.0636: :messages does not show the maintainer when $LANG is unset vim-patch:8.2.0642: Vim9: using invalid index vim-patch:8.2.0643: terminal uses brown instead of dark yellow vim-patch:8.2.0645: MS-Windows terminal: CTRL-C does not get to child job vim-patch:8.2.0651: old style benchmark test still in list of distributed files vim-patch:8.2.0654: building with Python fails vim-patch:8.2.0664: included undesired changes in Makefile vim-patch:8.2.0667: cannot install Haiku version from source vim-patch:8.2.0671: Haiku: compiler warnings
* | build: Inherit -n and -jN flags if Ninja #12219Eisuke Kawashima2020-05-01
| |
* | doc/UI: mode_info_set: mention colors should be swapped #12211Ghjuvan Lacambre2020-05-01
|/ | | | | | When attr_id is 0, the cursor's colors should be swapped, otherwise the cursor might be invisible. Closes #12198
* treesitter: unknown predicates always match #12173Thomas Vigouroux2020-04-30
|
* Merge pull request #12204 from archseer/lsp-user-dataMatthieu Coudron2020-04-30
|\ | | | | lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
| * lsp/completion: Expose completion_item under completed_items.user_data.Blaž Hrastnik2020-04-29
| | | | | | | | | | By passing through completion_item it's now possible for snippet plugins to add LSP snippet support.
| * vim-patch:8.2.0084: complete item "user_data" can only be a stringBlaž Hrastnik2020-04-29
| | | | | | | | | | | | Problem: Complete item "user_data" can only be a string. Solution: Accept any type of variable. (closes vim/vim#5412) https://github.com/vim/vim/commit/0892832bb6c7e322fcae8560eaad5a8140ee4a06
* | LSP: enable using different highlighting rules for LSP signs (#12176)Ghjuvan Lacambre2020-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit creates 4 new highlight groups: - LspDiagnosticsErrorSign - LspDiagnosticsWarningSign - LspDiagnosticsInformationSign - LspDiagnosticsHintSign These highlight groups are linked to their corresponding LspDiagnostics highlight groups by default. This lets users choose a different color for their sign columns and virtualtext diagnostics.
* | LSP: support tagstack #12096Yen32020-04-28
| |
* | lsp: use vim.tbl_isempty to check sign (#12190)Hirokazu Hata2020-04-28
| | | | | | | | | | ref: #12164 fix #12201 sign_getdefined() returns a list, {} if the sign is not defined.
* | tui: Fix italics when $TERM is screen in tmux #12199erw72020-04-28
|/ | | | | | Tmux uses smso to display italics when the default-terminal is screen, screen-*. That's not the display the user wants, so change it to do the same display as before f3ffe0b32. fixes #12193.