aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* checkhealth: allow 'sudo install' of 'Neovim::Ext' #11874Jan Edmund Lazo2020-02-15
| | | | | | | | | | | | | | cpanm cannot look for Perl modules from root directories without sudo so it creates '~/perl5/' and look for Perl modules in there. Whether this directory existed before running cpanm or not, cpanm returns a warning to advice the user to setup local::lib in order to use modules in '~/perl5/' and exits with error code 0. Each line in the warning always starts with '!'. Display this warning to the user. Continue parsing the version number if the warning can be ignored because lines that are not prefixed with '!' are valid output. Fix #11858
* Merge pull request #11864 from h-michael/deepcopyBjörn Linse2020-02-15
|\ | | | | lua: vim.deepcopy() and vim.tbl_extend() should preserve vim.empty_dict()
| * lua: if second argument is vim.empty_dict(), vim.tbl_extend uses ↵Hirokazu Hata2020-02-14
| | | | | | | | empty_dict() instead of {}
| * lua: vim.deepcopy uses empty_dict() instead of {} for empty_dict()Hirokazu Hata2020-02-13
| | | | | | | | fix: https://github.com/neovim/nvim-lsp/issues/94
* | checkhealth: ignore cpamn "!" output #11869Jan Edmund Lazo2020-02-14
| | | | | | | | | | | | | | | | cpanm outputs a warning that suggest to use 'sudo' or use local::lib. cpanm exits with 0 so nvim thinks that the command worked. cpanm output that starts with "!" is likely an error. Close #11858
* | doc/lsp: start_client config cmd must be a list (#11866)Mathias Fußenegger2020-02-13
|/ | | | | | | doc/lsp: start_client config cmd must be a list After the merge of https://github.com/neovim/neovim/pull/11847 cmd can no longer be a string but must be a list.
* vim-patch:8.1.0091: MS-Windows: Cannot interrupt gdb when program is runningerw72020-02-12
| | | | | | | Problem: MS-Windows: Cannot interrupt gdb when program is running. Solution: Add debugbreak() and use it in the terminal debugger. Respect 'modified' in a prompt buffer. https://github.com/vim/vim/commit/4551c0a9fcdbdef52836d4852686d54b5e47fdaf
* vim-patch:8.1.0071: terminal debugger only works with the terminal featureerw72020-02-12
| | | | | | | Problem: Terminal debugger only works with the terminal feature. Solution: Make it also work with a prompt buffer. Makes it possible to use on MS-Windows. Various other improvements. (closes vim/vim#3012) https://github.com/vim/vim/commit/b3307b5e7e7bd3962b0d5c61a94e638564c146b0
* vim-patch:8.1.0069: cannot handle pressing CTRL-C in a prompt buffererw72020-02-12
| | | | | | Problem: Cannot handle pressing CTRL-C in a prompt buffer. Solution: Add prompt_setinterrupt(). https://github.com/vim/vim/commit/0e5979a6d491f68c4a8c86fab489016919329a6b
* vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a joberw72020-02-12
| | | | | | Problem: Difficult to make a plugin that feeds a line to a job. Solution: Add the nitial code for the "prompt" buftype. https://github.com/vim/vim/commit/f273245f6433d5d43a5671306b520a3230c35787
* LSP: rename validate_command to _cmd_parts #11847Matthieu Coudron2020-02-11
| | | and now only accepts a list of strings (instead of string or list).
* LSP: Refine formatting tabSize #11834Jesse-Bakker2020-02-10
| | | | | | | | | | | | Use the logic explained in the softtabstop help section for defining the tabSize parameter in formatting requests. This means that: - if softtabstop is 0, tabstop is used - if softtabstop < 0, shiftwidth is used - if softtabstop > 0, softtabstop is used When inserting spaces instead of tabs, softtabstop is used in vim. Therefor it would be more logical to use it when formatting instead of the current tabstop.
* treesitter: use internal "decorations" bufferBjörn Linse2020-02-10
|
* lsp: Support text edit on inactive buffer (#11843)Mathias Fußenegger2020-02-10
| | | | | | | | | Using `vim.lsp.buf.rename()` can result in receiving a TextEdit that affects a file for which there is no active or loaded buffer. In that case `api.nvim_buf_get_lines(...)` returned an empty result, leading to an error. Closes https://github.com/neovim/neovim/issues/11790
* LSP: set InitializeParams.rootPath value #11838Hirokazu Hata2020-02-08
| | | InitializeParams.rootPath is deprecated now. But some language servers still use it.
* treesitter: add standard &rtp/parser/ search path for parsersBjörn Linse2020-02-07
|
* doc: Fix {spell,mlang}.txt files text encoding #11814Ramiro Morales2020-02-05
| | | | | These had broken encodings, set it to UTF-8. All remianing Neovim non-ASCII documentation files are UTF-8 encoded. And so are their Vim original versions.
* checkhealth: fix accidental change [ci skip]Justin M. Keyes2020-02-02
|
* checkhealth: avoid irrelevant virtualenv executablesJustin M. Keyes2020-02-02
|
* checkhealth: cleanup, brevityJustin M. Keyes2020-02-02
|
* checkhealth: bin directory is Scripts/ on WindowsDavid Lukes2020-02-02
|
* checkhealth: print -> sys.stdout.writeDavid Lukes2020-02-02
| | | | Co-Authored-By: Peter Lithammer <peter.lithammer@gmail.com>
* checkhealth: better $VIRTUAL_ENV validation #11781David Lukes2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix #11753 close #11781 The virtualenv troubleshooting in the Python provider health checks is supposed to help the user determine whether running Python from Neovim (as in `system('python')` or `system(exepath('python'))`) will use the correct executable when a virtualenv is active. Currently however, it issues spurious warnings in legitimate setups, and conversely, fails to warn about potentially problematic ones. See https://github.com/neovim/neovim/issues/11753#issuecomment-578715584 for a more detailed analysis, but at a high level, this is due to two things: - the virtualenv check is part of the Python provider check defined in `s:check_python`, which uses a roundabout and sometimes erroneous way of determining the Python executable - more generally, it shouldn't be part of the provider check at all, because it's not really related to the Python *provider*, i.e. the Python executable which can communicate with Neovim via `pynvim`, but to the Python the user is editing source files for, which typically shouldn't even have `pynvim` installed This patch reimplements the virtualenv check and factors it out into its own separate function, which is however still kept in `health/provider.vim` alongside the rest of the Python troubleshooting, since troubleshooting all Python-related stuff in one place is probably a good idea in order to alleviate any potential confusion (e.g. users who run only provider checks might be left wondering whether their virtualenv Python was properly detected if the report only shows their global Python as the provider used by Neovim).
* vim-patch:8.2.0161: not recognizing .gv file as dot filetypeJan Edmund Lazo2020-02-01
| | | | | | Problem: Not recognizing .gv file as dot filetype. Solution: Add *.gv to dot pattern. (closes vim/vim#5544) https://github.com/vim/vim/commit/f8ddb25789a6af530e69f499907979dfbff1c1ea
* vim-patch:8.2.0190: detect Kotlin files [ci skip] #11796Alkeryn2020-02-01
| | | | | Problem: Kotlin files are not recognized. Solution: Detect Kotlin files. (Alkeryn, closes vim/vim#5560) https://github.com/vim/vim/commit/ab067a21b9622513ed75f4801b001606eeaf2474
* vim-patch:8.2.0077: settagstack() cannot truncate at current indexJan Edmund Lazo2020-01-29
| | | | | | Problem: settagstack() cannot truncate at current index. Solution: Add the "t" action. (Yegappan Lakshmanan, closes vim/vim#5417) https://github.com/vim/vim/commit/271fa08a35b8d320d3a40db4ddae83b698fdd4fb
* LSP: show diagnostic in qf/loclist #11777Matthieu Coudron2020-01-28
| | | | | instead of the content of the file at this line. ref https://github.com/neovim/nvim-lsp/issues/69
* Merge #11772 from janlazo/vim-8.2.0152Justin M. Keyes2020-01-26
|\ | | | | vim-patch:8.2.{152,158}
| * vim-patch:8.2.0158: triggering CompleteDone earlier is not backwards compatibleJan Edmund Lazo2020-01-26
| | | | | | | | | | | | | | Problem: Triggering CompleteDone earlier is not backwards compatible. (Daniel Hahler) Solution: Add CompleteDonePre instead. https://github.com/vim/vim/commit/3f169ce17e8b779d105c96138a8b4246f2d270b9
* | mksession: always unix slashes "/" for filepathsJustin M. Keyes2020-01-26
|/
* terminal: absolute CWD in term:// URI #11289Chris LaRose2020-01-26
| | | | | | | | | This makes it possible to restore the working directory of :terminal buffers when reading those buffers from a session file. Fixes #11288 Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* vim-patch:8.2.0141: no swift filetype detection (#11747)Jan Edmund Lazo2020-01-23
| | | | | Problem: No swift filetype detection. Solution: Add swift, swiftgyb and sil. (Emir Sarı, closes vim/vim#5517) https://github.com/vim/vim/commit/0d76683e094c6cac2e879601aff3acf1163cbe0b
* Merge pull request #11740 from Billy4195/fix_jobstopBjörn Linse2020-01-22
|\ | | | | make jobstop() return 0 instead of throw error for already stopped job
| * Fix f_jobstop() failed loudlyBilly Su2020-01-22
| | | | | | | | | | | | The return value of jobstop() @return 1 for valid job id 0 for invalid id, including jobs have exited or stopped
* | provider/perl: add latest version health checkJan Edmund Lazo2020-01-20
| |
* | doc: provider-perlJan Edmund Lazo2020-01-20
| | | | | | | | | | | | | | Enable 'has("perl")' as an alias for 'g:loaded_perl_provider'. TODO: - +perl interface
* | provider/perl: add health checkJan Edmund Lazo2020-01-20
| |
* | provider/perl: simplify detectionJan Edmund Lazo2020-01-20
| |
* | remote plugins: add support for perl hostsJacques Germishuys2020-01-20
|/
* doc: autocmd.txtJustin M. Keyes2020-01-18
|
* WinClosed: sort auevents.lua; improve testsJustin M. Keyes2020-01-18
| | | | | - test: reduce verbosity, condense redundancy, improve readability - auevents.lua: keep events sorted by name. ref afd1d412fa91
* autocmd: add WinClosed eventMarcos ALMEIDA2020-01-18
| | | | | | - only fire once, just before freeing mem - trigger when on a different buffer - avoid recursive calls in another tab
* vim-patch:8.2.0123: complete_info() does not work when CompleteDone is triggeredJan Edmund Lazo2020-01-17
| | | | | | Problem: complete_info() does not work when CompleteDone is triggered. Solution: Trigger CompleteDone before clearing the info. https://github.com/vim/vim/commit/17e04781f26c24769e202351c194ee252927eee1
* doc [ci skip] #11656Justin M. Keyes2020-01-12
|
* defaults: set fillchars "foldsep" to box line #11702Matthieu Coudron2020-01-11
| | | | | "│" U+2502 BOX DRAWINGS LIGHT VERTICAL Fallback to old default | if 'ambiwidth' is set.
* LSP: highlight groups test, docJustin M. Keyes2020-01-08
|
* LSP: differentiate diagnostic underline by severityAlvaro Muñoz2020-01-08
|
* man.vim: workaround for 'cscopetag' #11679Rob Pilling2020-01-06
| | | | | | | | | | | | | The old `:Man` implementation would take either the word under the cursor, or the argument passed in, and load that as a man page. Since we now use 'tagfunc' and look for all relevant man-pages, if your system has several (i.e. same name, different sections), we return several, giving the user an option. This works for most tag commands except `:tjump`, which will fail if there's multiple tags to choose from. This just happens to be what the cscope code uses (it actually attempts to prompt the user, but this fails).
* vim-patch:8.1.1308: the Normal highlight is not defined when compiled with GUIJan Edmund Lazo2020-01-06
| | | | | | Problem: The Normal highlight is not defined when compiled with GUI. Solution: Always define Normal. (Christian Brabandt, closes vim/vim#4072) https://github.com/vim/vim/commit/f90b6e03a983b62b66564fc449e32724d6456769
* LSP: place hover window by vertical space #11657Ville Hakulinen2020-01-03
| | | | Make the hover window position itself vertically wherever is the most space available.