aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | | API: nvim_create_buf: unset 'modeline' in scratch-buffer #12379Justin M. Keyes2020-05-29
| | | | | | | | | | | | | | | | Although 'nomodeline' is not strictly part of the definition of a "scratch-buffer" it is obviously the right default.
* | | | lua: simple snippet support in the completion items (#12118)Viktor Kojouharov2020-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old behavior is: foo(${placeholder: bar, ...) with lots of random garbage you'd never want inserted. New behavior is: foo(bar, baz) (which maybe is good, maybe is bad [depends on user], but definitely better than it was). ----- * Implement rudimentary snippet parsing Add support for parsing and discarding snippet tokens from the completion items. Fixes #11982 * Enable snippet support * Functional tests for snippet parsing Add simplified real-world snippet text examples to the completion items test * Add a test for nested snippet tokens * Remove TODO comment * Return the unmodified item if the format is plain text * Add a plain text completion item
* | | | lsp: add preview_location util function (#12368)Christian Clason2020-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add preview_location * add doc stub * doc style; return bufnr&winnr of preview * doc: function may return nil Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com> * doc: fixup Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
* | | | lsp: make the command error message more detailed (#11633)Hirokazu Hata2020-05-26
| | | | | | | | | | | | | | | | | | | | * lsp.lua: make the error message more detailed * test: add lsp._cmd_part test
* | | | Merge pull request #11803 from erw7/virtual-terminal-inputMatthieu Coudron2020-05-26
|\ \ \ \ | | | | | | | | | | [RDY] win/TUI: Use virtual terminal input if available
| * | | | deps: update libuverw72020-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/neovim/neovim/pull/11808 https://github.com/neovim/libuv/pull/12 v1.34.2 * darwin: stop calling SetApplicationIsDaemon() (Ben Noordhuis) * osx,fsevent: fix race during uv_loop_close (Jameson Nash) * unix: handle uv__open_cloexec return value correctly (Anna Henningsen) v1.34.1 * unix: fix -Wstrict-aliasing compiler warning (Ben Noordhuis) * unix: cache address of dlsym("mkostemp") (Ben Noordhuis) * win,tty: avoid regressions in utf-8 handling (Jameson Nash) * win: remove bad assert in uv_loop_close (Jameson Nash) * tty,unix: avoid affecting controlling TTY (Jameson Nash) v1.34.0 * unix: refactor uv__fs_copyfile() logic (cjihrig) * fs: handle non-functional statx system call (Milad Farazmand) * unix,win: add uv_sleep() (cjihrig) * fs: add uv_fs_mkstemp (Saúl Ibarra Corretgé) v1.33.0 * win: fix reading hidden env vars (Anna Henningsen) * unix,win: add uv_random() (Ben Noordhuis) * win, tty: fix problem of receiving unexpected SIGWINCH (erw7) * fs: use statvfs in uv__fs_statfs() for Haiku (Calvin Hill) * fsevents: stop using fsevents to watch files (Jameson Nash) * win,tty: add uv_tty_{get,set}_vterm_state (erw7) * unix: update uv_fs_copyfile() fallback logic (Stefan Bender) * win: cast setsockopt struct to const char* (Shelley Vohr) * unix: fix {Net,Open}BSD build
| * | | | win/TUI: enable mouse on ConEmu and vtpcon without vtierw72020-05-26
| | | | |
| * | | | win: use virtual terminal input (VTI) if available #11803erw72020-05-26
|/ / / / | | | | | | | | | | | | | | | | fixes #9514 fixes #11773
* | | | Merge pull request #10905 from erw7/vim-8.1.0475Matthieu Coudron2020-05-25
|\ \ \ \ | | | | | | | | | | vim-patch:8.1.{475,800,868,1007,1027,1031,1033,1037,1058,1435,1484,1485}
| * | | | eval: fix problem with free_unref_funccal not being callederw72020-05-25
| | | | |
| * | | | vim-patch:8.1.1485: double free when garbage_collect() is used in autocommanderw72020-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Double free when garbage_collect() is used in autocommand. Solution: Have garbage collection also set the copyID in funccal_stack. https://github.com/vim/vim/commit/c07f67ad0e9c48a07d49f2d67eb63e183a22386a
| * | | | vim-patch:8.1.1484: some tests are slowDaniel Hahler2020-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Some tests are slow. Solution: Add timing to the test messages. Fix double free when quitting in VimLeavePre autocmd. https://github.com/vim/vim/commit/75ee544f99ca66be8105570c6309d95435ad30d1
| * | | | vim-patch:8.1.1435: memory usage test is a bit too flakyerw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test is a bit too flaky. Solution: Adjust the tolerances a bit. (Christian Brabandt) https://github.com/vim/vim/commit/5d508dd39e810d446f29dfd4f4e745b802875001
| * | | | vim-patch:8.1.1058: memory usage test may still fail on some systemserw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test may still fail on some systems. Solution: Use 98% of the lower limit. (Christian Brabandt) https://github.com/vim/vim/commit/3a731ee0c2dd34792c1b21fc4c699a84129f1b86
| * | | | vim-patch:8.1.1037: memory usage test may still fail on some systemserw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test may still fail on some systems. Solution: Increase tolerance from 3% to 20%. https://github.com/vim/vim/commit/6b6f7aae4a3329d685e512699287605540257b40
| * | | | vim-patch:8.1.1033: memory usage test may still fail on some systemserw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test may still fail on some systems. (Elimar Riesebieter) Solution: Increase tolerance from 1% to 3%. https://github.com/vim/vim/commit/ba64ba093520e85d6bed2595960edb693bdb4c51
| * | | | vim-patch:8.1.1031: memory usage test may still failerw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test may still fail. Solution: Drop the unused min value. (Christian Brabandt) https://github.com/vim/vim/commit/f7e47af7760fe054cb645dac9a1e96b23c85804d
| * | | | vim-patch:8.1.1027: memory usage test sometimes failserw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory usage test sometimes fails. Solution: Use 80% of before.last as the lower limit. (Christian Brabandt) https://github.com/vim/vim/commit/08cda65ddfbb4bce8cef43726a0c00817fc47327
| * | | | vim-patch:8.1.1007: using closure may consume a lot of memoryerw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using closure may consume a lot of memory. Solution: unreference items that are no longer needed. Add a test. (Ozaki Kiichi, closes vim/vim#3961) https://github.com/vim/vim/commit/209b8e3e3bf7a4a3d102134124120f6c7f57d560
| * | | | vim-patch:8.1.0475: memory not freed on exit when quit in autocmderw72020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory not freed on exit when quit in autocmd. Solution: Remember funccal stack when executing autocmd. https://github.com/vim/vim/commit/27e80c885bcb5c5cf6a6462d71d6c81b06ba2451
* | | | | Merge pull request #12367 from h-michael/lsp-logHirokazu Hata2020-05-25
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | lsp: change log name to "lsp.log" from "vim-lsp.log"Hirokazu Hata2020-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | It's confusing because vim-lsp already has the same name as the plugin name that predates this built-in lsp. Also, since "vim.fn.stdpath" is used, adding the prefix "nvim-" is redundant, so just "lsp.log" will suffice.
* | | | | vim-patch:8.0.1668: terminal debugger: can't re-open source code window (#12329)Jan Edmund Lazo2020-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Terminal debugger: can't re-open source code window. Solution: Add the :Source command. Also create the window if needed when gdb stops at a source line. https://github.com/vim/vim/commit/c4b533e1e93151658cb170c6796d327a8c0f8612
* | | | | vim-patch:8.1.2233: cannot get the Vim command line arguments (#12117)kuuote2020-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot get the Vim command line arguments. Solution: Add v:argv. (Dmitri Vereshchagin, closes vim/vim#1322) https://github.com/vim/vim/commit/69bf634858a2a75f2984e42b1e4017bc529a040a
* | | | | Merge pull request #12327 from janlazo/vim-8.2.0766Matthieu Coudron2020-05-23
|\ \ \ \ \ | |/ / / / |/| | | | vim-patch:8.1.2228,8.2.{36,37,766,810}
| * | | | vim-patch:8.2.0810: error when appending "tagfile" to 'wildoptions'Jan Edmund Lazo2020-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Error when appending "tagfile" to 'wildoptions'. Solution: use flags P_ONECOMMA and P_NODUP. (Dmitri Vereshchagin, closes vim/vim#6105) https://github.com/vim/vim/commit/2e61e2d08390623fcf933fd06646ac91f81fb772
| * | | | vim-patch:8.2.0037: missing renamed messageJan Edmund Lazo2020-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Missing renamed message. Solution: Now really add the error number. https://github.com/vim/vim/commit/1500a42c42b26cb63659d90883f7a438895cd273
| * | | | 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
| | |