aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* feat: add vim.tbl_get (#17831)Michael Lingelbach2022-03-24
| | | | | | vim.tbl_get takes a table with subsequent string arguments (variadic) that index into the table. If the value pointed to by the set of keys exists, the function returns the value. If the set of keys does not exist, the function returns nil.
* feat(runtime): include Lua in C++ ftplugin (#17843)Gregory Anders2022-03-24
|
* refactor: remove cpo-& behavior (#17745)zeertzjq2022-03-23
| | | | cpo-& has been removed, but its behavior was accidentally made the default behavior. That should be removed instead.
* docs: regenerate [skip ci]marvim2022-03-20
|
* Merge pull request #17776 from bfredl/tsconcealbfredl2022-03-20
|\ | | | | feat(ui): allow conceal to be defined in decorations
| * feat(ui): allow conceal to be defined in decorationsbfredl2022-03-20
| | | | | | | | | | | | Unlike syntax conceal, change highlight of concealed char Can be used in tree-sitter using "conceal" metadata.
* | fix(lsp): set tabSize from 'shiftwidth', not 'softtabstop' (#17787)Tim Pope2022-03-20
|/ | | | | | | | | The use of 'softtabstop' to set tabSize was introduced in 5d5b068, replacing 'tabstop'. If we look past the name tabSize and at the actual purpose of the field, it's the indentation width used when formatting. This corresponds to the Vim option 'shiftwidth', not 'softtabstop'. The latter has the comparatively mundane purpose of controlling what happens when you hit the tab key (and even this is incomplete, as it fails to account for 'smarttab').
* fix(termdebug): handle exiting during startup properly (#16790)Sean Dewar2022-03-20
| | | | | | | | | | | | | s:EndTermDebug should only be called when exiting if the debugger started without error, otherwise the plugin breaks. Vim handles this by using job_setoptions to set the on_exit callback to s:EndTermDebug after startup succeeds. However, Nvim does not have such functionality; instead; use s:starting to mimic this behaviour. Also, introduce s:running to fix s:CheckGdbRunning; it did not work correctly due to the "[Process exited X]" message keeping the job's channel alive (though the stream is closed). This means nvim_get_chan_info cannot be used to check if the debugger has exited, as it may still return a non-empty dict.
* vim-patch:47c532e2bc55 (#17780)Christian Clason2022-03-20
| | | | Update runtime files https://github.com/vim/vim/commit/47c532e2bc55e8a48f7f47e1fae1ed30144f2fa1
* docs: reword description for nvim_buf_line_count() (#17766)Xiretza2022-03-18
| | | This adds a few more keywords to make the function easier to find.
* Merge pull request #17266 from famiu/feat/ui/global-statuslinebfredl2022-03-17
|\ | | | | feat(statusline): add global statusline
| * feat: add support for global statuslineFamiu Haque2022-03-18
| | | | | | | | | | | | | | | | | | | | Ref: #9342 Adds the option to have a single global statusline for the current window at the bottom of the screen instead of a statusline at the bottom of every window. Enabled by setting `laststatus = 3`. Due to the fact that statuslines at the bottom of windows are removed when global statusline is enabled, horizontal separators are used instead to separate horizontal splits. The horizontal separator character is configurable through the`horiz` item in `'fillchars'`. Separator connector characters are also used to connect the horizontal and vertical separators together, which are also configurable through the `horizup`, `horizdown`, `vertleft`, `vertright` and `verthoriz` items in `fillchars`. The window separators are highlighted using the `WinSeparator` highlight group, which supersedes `VertSplit` and is linked to `VertSplit` by default in order to maintain backwards compatibility.
* | chore: fix typos (#17670)dundargoc2022-03-17
| | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | Merge pull request #17707 from tesaguri/refactor-gen_vimdocJames McCoy2022-03-16
|\ \
| * | docs: remove extra whitespacesDaiki Mizukami2022-03-14
| | |
| * | chore(gen_vimdoc): fall back to `brief_desc_node` when `desc_node` is emptyDaiki Mizukami2022-03-14
| | |
* | | chore(checkhealth/provider): style fixes (#17738)Sean Dewar2022-03-16
| | |
* | | fix(checkhealth): make provider checkhealth output more consistent (#17722)dundargoc2022-03-16
| | | | | | | | | | | | | | | Change missing provider plugins from errors to warnings for python and perl. Also give proper advice under the ADVICE section instead of just the errors.
* | | vim-patch:8.2.4571: not all gdb files are recognized (#17727)Jade Lovelace2022-03-15
| | | | | | | | | | | | | | | | | | Problem: Not all gdb files are recognized. Solution: Add a few more patterns for gdb. (closes https://github.com/vim/vim/pull/9956) https://github.com/vim/vim/commit/8d5e514d77bd4b1956656ad2be2ce7094bd43a72
* | | fix(paste): escape control characters in Cmdline modezeertzjq2022-03-15
| | |
* | | fix(paste): deal with trailing new line in chunkzeertzjq2022-03-15
| | |
* | | fix(paste): avoid edges cases caused by empty chunkzeertzjq2022-03-15
| | |
* | | refactor(paste): do not print dots in cmdline modezeertzjq2022-03-15
| | |
* | | fix(paste): deal with eol and eof in Visual modezeertzjq2022-03-15
| | |
* | | fix(paste): don't move cursor past the end of pasted text in Normal modezeertzjq2022-03-15
| | |
* | | fix(paste): use getcmdtype() to determine whether in cmdline modezeertzjq2022-03-15
| | |
* | | vim-patch:8.2.1401: cannot jump to the last used tabpageSean Dewar2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot jump to the last used tabpage. Solution: Add g<Tab> and tabpagnr('#'). (Yegappan Lakshmanan, closes vim/vim#6661, neovim #11626) https://github.com/vim/vim/commit/62a232506d06f6d1b3b7271801c907d6294dfe84 Nvim implemented this feature before Vim, but Vim made some useful changes (e.g: beeping on failure). Port the changes to closer match Vim (also makes porting future patches easier). Also note that because CHECK_CMDWIN was added to goto_tabpage_tp, there is no need to do the extra work with tabpage_index and goto_tabpage inside goto_tabpage_lastused to fix cmdwin issues any more (#11692). Note that while goto_tabpage_tp doesn't check for textlock like goto_tabpage does, it shouldn't matter as it is already checked for earlier. Add tags for <C-Tab> to tabpage.txt, and refer to <C-Tab> over CTRL-Tab to be consistent with other docs like the patch. Remove mention of "previous tabpage" (it can be confused with the tabpage to the left, e.g: `:tabprevious`). Similarly, don't rename old_curtab to last_tab in enter_tabpage (it might be confused with the right-most tabpage, e.g: `:tablast`). Cherry-pick Test_tabpage change from v8.2.0634. https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
* | | refactor: use Lua autocommands in filetype.lua (#17711)Gregory Anders2022-03-13
|/ /
* | docs(api): improve section on nvim_set_hl (#17692)adrian52022-03-13
| |
* | vim-patch:8.1.1015: quickfix buffer shows up in list, can't get buffer numberJan Edmund Lazo2022-03-13
| | | | | | | | | | | | | | | | Problem: Quickfix buffer shows up in list, can't get buffer number. Solution: Make the quickfix buffer unlisted when the quickfix window is closed. get the quickfix buffer number with getqflist(). (Yegappan Lakshmanan, closes vim/vim#4113) https://github.com/vim/vim/commit/647e24ba3dbf7ff448aa471b1a659a18267ae056
* | feat(runtime): import cleanadd.vim from Vim (#17699)dundargoc2022-03-13
| | | | | | | | Latest version from Vim v7.2a. Closes https://github.com/neovim/neovim/issues/12875
* | fix: use normal! <C-L> in default <C-L> mapping (#17695)Gregory Anders2022-03-12
| |
* | vim-patch:partial:a2baa73d1d33 (#17675)zeertzjq2022-03-12
| | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/a2baa73d1d33014adea0fd9567949089ca21a782 Cherry-pick tabpage.txt changes from patch 8.2.1413. Skip digraph functions: included in #17440. Skip many error codes as they haven't been ported yet.
* | docs: remove "not in vi" notes (#17678)dundargoc2022-03-11
| | | | | | [skip ci]
* | fix(remote): respect silent in error reportingCharlie Groves2022-03-11
| |
* | fix(remote): report on missing wait commands, typecheck lua resultsCharlie Groves2022-03-11
| | | | | | | | Clean up lint errors, too
* | docs(remote): update remote.txt for current nvim implementationCharlie Groves2022-03-11
| |
* | docs(remote): restore remote.txt from removal in f2205b83c553367a76b6cadCharlie Groves2022-03-11
| |
* | test(remote): add tests for --remoteCharlie Groves2022-03-11
| | | | | | | | This also fixes a fair number of issues found in running the tests
* | feat(remote): add basic --remote supportCharlie Groves2022-03-11
| | | | | | | | | | This is starting from @geekodour's work at https://github.com/neovim/neovim/pull/8326
* | Merge pull request #17660 from bfredl/luacompletebfredl2022-03-10
|\ \ | | | | | | feat(lua): handle lazy submodules in `:lua vim.` wildmenu completion
| * | feat(lua): handle lazy submodules in `:lua vim.` wildmenu completionbfredl2022-03-09
| | |
* | | chore: fix typos (#17331)dundargoc2022-03-10
| | | | | | | | | | | | | | | | | | Co-authored-by: Hongyi Lyu <hongyi.lyu95@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: notomo <notomo.motono@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | vim-patch:partial 1588bc8ebee2 (#17657)Sean Dewar2022-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/1588bc8ebee22f2855f27273fc2234fff370f86c docs only skip :argdedupe changes (need v8.2.3888) skip sound_playfile changes (need +sound) skip fuzzy-matching changes in *command-attributes* (need #17536)
* | | vim-patch:partial 1588bc8ebee2 (#17656)Christian Clason2022-03-09
| | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/1588bc8ebee22f2855f27273fc2234fff370f86c omit: doc updates
* | | vim-patch:8.2.0997: cannot execute a register containing line continuationzeertzjq2022-03-09
|/ / | | | | | | | | | | | | | | | | | | Problem: Cannot execute a register containing line continuation. Solution: Concatenate lines where needed. (Yegappan Lakshmanan, closes vim/vim#6272) https://github.com/vim/vim/commit/856c1110c1cf0d6e44e387b70732ca4b4c8ef0f2 According to #2542 the "Future:" part was removed intentionally. Use size_t in more places to reduce type casts.
* | feat(api): autocmd `group` can be either name or id (#17559)Dhruv Manilawala2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(api): `group` can be either string or int This affects the following API functions: - `vim.api.nvim_create_autocmd` - `vim.api.nvim_get_autocmds` - `vim.api.nvim_do_autocmd` closes #17552 * refactor: add two maps for fast lookups * fix: delete augroup info from id->name map When in "stupid_legacy_mode", the value in name->id map would be updated to `AUGROUP_DELETED`, but the entry would still remain in id->name. This would create a problem in `augroup_name` function which would return the name of the augroup instead of `--DELETED--`. The id->name map is only used for fast loopup in `augroup_name` function so there's no point in keeping the entry of deleted augroup in it. Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
* | refactor(lua): make vim submodule lazy loading declarativebfredl2022-03-07
| | | | | | | | | | This will allow us to also use the same logic for lua threads and processes, later.
* | feat(api): add 'buffer' argument to nvim_get_autocmds (#17594)Gregory Anders2022-03-06
| | | | | | | | | | This enables retrieving autocommands defined in the given buffers. Under the hood this simply translates the buffer numbers into '<buffer=%d>' patterns.
* | fix(lsp): handle insertion of previous line (#17618)Michael Lingelbach2022-03-06
| |