aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | | | vim-patch:8.2.0036: not enough test coverage for match functionsJan Edmund Lazo2020-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Not enough test coverage for match functions. Solution: Add a few more test cases. (Dominique Pelle, closes vim/vim#5394) Add error number. https://github.com/vim/vim/commit/49d68bf5e4d9306269b141f0576bbf44631f4ff0
| * | | | vim-patch:8.1.2228: screenpos() returns wrong values when 'number' is setJan Edmund Lazo2020-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: screenpos() returns wrong values when 'number' is set. (Ben Jackson) Solution: Compare the column with the window width. (closes vim/vim#5133) https://github.com/vim/vim/commit/38ba4dce4a8574e60f6ddb111922880b0c7affdc
| * | | | vim-patch:8.2.0766: display error when using 'number' and 'breakindent'Jan Edmund Lazo2020-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Display error when using 'number' and 'breakindent'. Solution: Adjust extra spaces in the first row. (Ken Takata, closes vim/vim#6089, closes vim/vim#5986) https://github.com/vim/vim/commit/e882f7a73c8fa48707de71035eb0a7ccc6ac8548
* | | | | doc: Add optional d for `:lcd` and `:tcd` (#12359)Austin Traver2020-05-22
|/ / / / | | | | | | | | | | | | | | | | The `:lcd -` command, and `:tcd -` which returns to a previous directory, can be done with `:lc -` and `:tc -` respectively. Basically, the d is optional, so I updated the documentation to indicate this in the traditional format.
* | | | Change uri_to_fname to not convert non-file URIs (#12351)Mathias Fußenegger2020-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change uri_to_fname to not convert non-file URIs A URI with a scheme other than file doesn't have a local file path. * fixup! Change uri_to_fname to not convert non-file URIs * fixup! fixup! Change uri_to_fname to not convert non-file URIs
* | | | LSP: Don't swallow bufnr argument from callbacks (#12350)Mathias Fußenegger2020-05-20
| | | | | | | | | | | | | | | | | | | | The callbacks for `textDocument/documentSymbol` and `workspace/symbol` never received the `bufnr` argument because the logic that adds error validation and logging swallowed the argument.
* | | | fixed hang issue with --headless and -r option specified (#12209)Kei Kamikawa2020-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed hang issue with --headless and -r option specified Calling the do_more_prompt function in headless mode will freeze neovim because it is eventally in the input-accepting state (the same as waiting for --more--). * fixed "Press ENTER or type command to continue" to be suppressed If in headless mode, we need to exit at this point. If we continue, we will enter the normal mode and the message "Press ENTER or type command to continue" will be displayed and we will be in the input waiting state. * fixed functional ex_cmds tests * Revert "fixed "Press ENTER or type command to continue" to be suppressed" This reverts commit a02dc40e3b3fad69cedcde6abe1bd4efe39ab102. * Revert "fixed functional ex_cmds tests" This reverts commit 3bdb8da20acf34673b2c2028d15e7ce6da4c792a. * fixed conditional again * added test for fixed hang issue with --headless (#11386)
* | | | provider: Add python3.9 to autoload/provider/pythonx.vim (#12344)Faris A Chugthai2020-05-20
| |_|/ |/| | | | | | | | 3.9's scheduled for beta release today. https://www.python.org/dev/peps/pep-0596/
* | | Merge pull request #12338 from h-michael/fix-flakyHirokazu Hata2020-05-19
|\ \ \
| * | | test: fix flaky vim.defer_fn testHirokazu Hata2020-05-19
| | | |
* | | | lsp: fix get diagnositcsMike Hartington2020-05-19
|/ / /
* | / lua: Add highlight.on_yank (#12279)Christian Clason2020-05-18
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add lua function to highlight yanked region * extract namespace, better naming, default values * add default for event argument * free timer * factor out mark to position calculation * d'oh * make sure timer stops before callback (cf. luv example) * factor out timer, more documentation * fixup * validate function argument for schedule * fix block selection past eol * correct handling of multibyte characters * move arguments around, some cleanup * move utility functions to vim.lua * use anonymous namespaces, avoid local api * rename function * add test for schedule_fn * fix indent * turn hl-yank into proper (hightlight) module * factor out position-to-region function mark extraction now part of highlight.on_yank * rename schedule_fn to defer_fn * add test for vim.region * todo: handle double-width characters * remove debug printout * do not shadow arguments * defer also callable table * whitespace change * move highlight to vim/highlight.lua * add documentation * add @return documentation * test: add check before vim.defer fires * doc: fixup
* | doc: Vim internal variables & options in lua (#12302)TJ DeVries2020-05-17
| | | | | | | | | | | | | | | | | | * doc: Add info about vim dicts in lua * doc: preamble and info * doc: remove weird spacing * fixup
* | lsp: Fix timezone format of LSP log (ISO 8601) (#12332)Eisuke Kawashima2020-05-17
| |
* | lsp: Handle end lines in apply_text_edits (#12314)Andreas Johansson2020-05-17
| | | | | | | | | | | | If the LSP sends an end line that is larger than what nvim considers to be the last line, you get an Index out of bounds error when fetching the line from nvim, a change that was introduced in #12223. This change removes the strict indexing and checks the return value from nvim_buf_get_lines.
* | lua: add tbl_deep_extend (#11969)Hirokazu Hata2020-05-17
| |
* | matchdelete: fix porting (#12328)Shougo2020-05-17
| | | | | | really use win and not curwin
* | vim-patch:8.1.1084: cannot delete a match from another window (#12325)Shougo2020-05-16
| | | | | | | | | | | | Problem: Cannot delete a match from another window. (Paul Jolly) Solution: Add window ID argument to matchdelete(), clearmatches(), getmatches() and setmatches(). (Andy Massimino, closes vim/vim#4178) https://github.com/vim/vim/commit/aff749145e23c0f20b5158d1d3a942948ed138e3
* | Merge pull request #12324 from alindeman/nil-code-actionsHirokazu Hata2020-05-16
|\ \
| * | Check for nil before checking for empty tableAndy Lindeman2020-05-15
|/ / | | | | | | | | | | | | At least the `gopls` language server seems to return nil/null if no code actions are available. Currently this results in an error: > Error executing vim.schedule lua callback: shared.lua:199: Expected table, got nil
* | LSP: Add textDocument/codeAction support (#11607)Jesse2020-05-16
| | | | | | | | | | | | | | | | | | | | | | | | * Add textDocument/codeAction * Add callback for workspace/executeCommand * Escape newlines in codeAction titles * Return empty list in get_line_diagnostics if no buffer diagnostics * Add stub documentation * Validate context parameter in code_action * Add support for edit in CodeAction responses * Group diagnostics by line in vim.lsp.util.get_line_diagnostics() * Advertise code action literal support
* | Merge pull request #11764 from blueyed/vim-patch-usageJames McCoy2020-05-15
|\ \
| * | docDaniel Hahler2020-01-26
| | |
| * | set -u before returnDaniel Hahler2020-01-26
| | | | | | | | | | | | Follow up to a4d21f059.
| * | scripts/vim-patch.sh: add -m to usageDaniel Hahler2020-01-26
| | | | | | | | | | | | Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-569476828
* | | Merge pull request #12259 from janlazo/vim-8.1.1186James McCoy2020-05-15
|\ \ \
| * | | vim-patch:8.2.0736: some files not recognized as pamenvJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Some files not recognized as pamenv. Solution: Add pam_inv.conf. (closes vim/vim#6065) https://github.com/vim/vim/commit/aacc6afdb8cdeb2558e6942dcd65ca0079bec1ee
| * | | vim-patch:8.2.0309: window-local values have confusing nameJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Window-local values have confusing name. Solution: Rename w_p_bri* to w_briopt_*. https://github.com/vim/vim/commit/b81f56fb57c87a7490dd79908c257437d1958447
| * | | vim-patch:8.2.0308: 'showbreak' does not work for a very long lineJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'showbreak' does not work for a very long line. (John Little) Solution: Check whether 'briopt' contains "sbr". (Ken Takata, closes vim/vim#5523, closes vim/vim#5684) https://github.com/vim/vim/commit/1aa76b8fd06c278fe36c39b0bbe7233c775d7423
| * | | vim-patch:8.2.0713: the pam_environment file is not recognizedJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: The pam_environment file is not recognized. Solution: Add a filetype pattern for pamenv. (closes vim/vim#6051) https://github.com/vim/vim/commit/611548105394fdb76827cd431230c9fbfed39929
| * | | vim-patch:8.2.0705: indent tests don't run on CI for FreeBSDJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Indent tests don't run on CI for FreeBSD. Solution: Set modeline. (Ozaki Kiichi, closes vim/vim#6048) https://github.com/vim/vim/commit/3657686a0e8fd07428a25c2cf9efcc8b5d33f895
| * | | vim-patch:8.1.1186: readdir() allocates list twiceJan Edmund Lazo2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: readdir() allocates list twice. Solution: Remove second allocation. Also check for zero length. https://github.com/vim/vim/commit/334ad415040f9592451ec99498cd99f90d6e33e6
* | | | LSP: Add workspace.applyEdit client capabilities (#12313)Mathias Fußenegger2020-05-14
| | | | | | | | | | | | applyEdit is supported by the built-in client.
* | | | lsp: fix bug when documentEdit version=null for unattached buffer (#12272)landerlo2020-05-13
|/ / /
* | | LSP: Make applyEdit return a response (#12270)Mathias Fußenegger2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | According to the specification workspace/applyEdit needs to respond with a `ApplyWorkspaceEditResponse` See https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit This is a subset of https://github.com/neovim/neovim/pull/11607
* | | Merge #12275 from erw7/profile-fix-use-after-freeJustin M. Keyes2020-05-09
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | viml/profile: fix missing fixes when merging vim-patch:8.1.0130 Fix #12255 ### Steps to reproduce using `nvim -u NORC` ``` nvim -u NORC :function Test() :endfunction :profile start log1 :profile func Test :call Test() :profile stop :profile start log2 :profile func Test :call Test() :profile stop ``` ### Actual behaviour #### log1 ``` FUNCTION Test() Called 1 times ... ``` #### log2 ``` FUNCTION Test() Called 2 times ... ``` ### Expected behaviour #### log1 ``` FUNCTION Test() Called 1 times ... ``` #### log2 ``` FUNCTION Test() Called 1 times ... ```
| * | | test: add more profile testserw72020-05-10
| | | | | | | | | | | | | | | | | | | | - Add a test to make sure that 'profile dump' does not reset the profile. - Add a test to make sure that 'profile stop' does reset the profile.
| * | | viml/profile: fix issue where profile is not reset on stoperw72020-05-09
| | | |
| * | | viml/profile: fix use after freeerw72020-05-09
| | | | | | | | | | | | | | | | fixes #12255.
* | | | runtime/tutor: fix broken inline spans #12282Felipe Morales2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/syntax/tutor: fix broken inline spans Also, conceal the ends of code blocks. Re: #11401 and #12273 * fixup
* | | | 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