aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* test: add VIMRUNTIME variable to the clear functionDundar Göc2022-01-08
| | | | Some of the tests will fail if this isn't explicitly set.
* Merge pull request #16991 from bk2204/ex-modebfredl2022-01-08
|\ | | | | Make mode() return correct value in ex mode
| * fix: make mode() return correct value in ex modebrian m. carlson2022-01-08
| | | | | | | | | | | | | | | | | | When the user is in ex mode, a call to mode(1) is documented to return "cv". However, it does not currently do so, because the check which checks for ex mode is nested inside a conditional which is never reached in ex mode. Vim uses an explicit check for exmode_active, so let's do the same thing here. Add some tests for this case both with a TTY and in silent mode.
* | fix(lsp): resolve bufnr for get_lines (#16986)Michael Lingelbach2022-01-08
| | | | | | | | | | | | | | Closes https://github.com/neovim/neovim/issues/16985 * get_lines checks if buf_loaded using bufnr 0, which is typically used as a sentinel value, but here must be resolved to the true bufnr
* | fix(filetype): match negative priority patterns after extensions (#16980)Gregory Anders2022-01-07
| | | | | | | | | | Negative priority patterns are those that act as catch-alls when all other attempts at matching have failed (typically the patterns that use the StarSetf functions).
* | vim-patch:8.2.4033: running filetype tests leaves directory behind (#16984)zeertzjq2022-01-07
|/ | | | | Problem: Running filetype tests leaves directory behind. Solution: Delete the top directory. (closes vim/vim#9483) https://github.com/vim/vim/commit/a4c96252b12c9ebc0ba563694c064e500d707b06
* Merge pull request #16970 from dundargoc/ci/serialize-labeler-workflowJames McCoy2022-01-07
|\
| * ci: run type-scope job after the triage jobDundar Göc2022-01-07
|/ | | | | This should prevent the scenario of one job accidentally removing a relevant label from the other.
* feat(lsp): skip or reduce debounce after idle (#16881)Mathias Fußenegger2022-01-07
| | | | | | | | | | The idea of the debounce is to avoid overloading a server with didChange notifications. So far this used a constant value to group changes within an interval together and send a single notification. A side effect of this is that when you were idle, notifications are still delayed. This commit changes the logic to take the time the last notification happened into consideration, if it has been greater than the debounce interval, the debouncing is skipped or at least reduced.
* vim-patch:8.2.4014: git and gitcommit file types not properly recognized ↵Christian Clason2022-01-07
| | | | | | | (#16953) Problem: Git and gitcommit file types not properly recognized. Solution: Adjust filetype detection. (Tim Pope, closes vim/vim#9477) https://github.com/vim/vim/commit/c689f8c3d98fffe7e13730e198ce120934528f9c
* vim-patch:8.2.0951: search stat test has leftover from debugging (#16967)zeertzjq2022-01-06
| | | | | Problem: Search stat test has leftover from debugging. Solution: Remove line that writes a file. (Christian Brabandt, closes vim/vim#6224) https://github.com/vim/vim/commit/6ba24d87630b1ec2b8c7ff71550c9e41d143800e
* fix(runtime): check markdownError before syn-clear (#16930)Frederick Zhang2022-01-06
| | | | Avoids `E28: No such highlight group name: markdownError` when using a foreign markdown syntax.
* fix(lua): print multiple return values with =expr (#16933)Shadman2022-01-06
|
* feat(lua): add notify_once() (#16956)Gregory Anders2022-01-06
| | | Like vim.notify(), but only displays the notification once.
* Merge pull request #16591 from shadmansaleh/feat/lua_keymaps2Björn Linse2022-01-06
|\ | | | | feat(lua): add support for lua keymaps
| * feat(lua): add vim.keymapshadmansaleh2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces two new functions `vim.keymap.set` & `vim.keymap.del` differences compared to regular set_keymap: - remap is used as opposite of noremap. By default it's true for <Plug> keymaps and false for others. - rhs can be lua function. - mode can be a list of modes. - replace_keycodes option for lua function expr maps. (Default: true) - handles buffer specific keymaps Examples: ```lua vim.keymap.set('n', 'asdf', function() print("real lua function") end) vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, {buffer=true}) vim.keymap.set('n', '<leader>w', "<cmd>w<cr>", {silent = true, buffer = 5 }) vim.keymap.set('i', '<Tab>', function() return vim.fn.pumvisible() == 1 and "<C-n>" or "<Tab>" end, {expr = true}) vim.keymap.set('n', '[%', '<Plug>(MatchitNormalMultiBackward)') vim.keymap.del('n', 'asdf') vim.keymap.del({'n', 'i', 'v'}, '<leader>w', {buffer = 5 }) ```
* | Merge pull request #16817 from lewis6991/masterBjörn Linse2022-01-06
|\ \ | | | | | | vim-patch:8.2.3921: the way xdiff is used is inefficient
| * | vim-patch:8.2.3921: the way xdiff is used is inefficientLewis Russell2021-12-28
| | | | | | | | | | | | | | | | | | | | | Problem: The way xdiff is used is inefficient. Solution: Use hunk_func instead of the out_line callback. (Lewis Russell, closes vim/vim#9344) https://github.com/vim/vim/commit/d9da86e94ea8dbaa056270a666892945c40a6674
* | | Merge pull request #16942 from gpanders/test-filetype-luaGregory Anders2022-01-05
|\ \ \
| * | | fix(filetype): normalize slashes in file pathsGregory Anders2022-01-05
| | | |
| * | | test(filetype): port test_filetype to LuaGregory Anders2022-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because filetype.lua is gated behind an opt-in variable, it's not tested during the "standard" test_filetype.vim test. So port the test into filetype_spec where we enable the opt-in variable. This means runtime Vim patches will need to update test_filetype in two places. This can eventually be removed if/when filetype.lua is made opt-out rather than opt-in.
* | | | chore: remove lspconfig checkhealth from issue template (#16948)Michael Lingelbach2022-01-05
|/ / /
* | | fix(filetype): match on <afile> rather than <abuf> (#16943)Gregory Anders2022-01-05
| | | | | | | | | | | | | | | | | | | | | Filetype detection runs on BufRead and BufNewFile autocommands, both of which can fire without an underlying buffer, so it's incorrect to use <abuf> to determine the file path. Instead, match on <afile> and assume that the buffer we're operating on is the current buffer. This is the same assumption that filetype.vim makes, so it should be safe.
* | | feat(lsp): enable default debounce of 150 ms (#16908)Michael Lingelbach2022-01-05
| | |
* | | feat(autocmd): populate v:event in RecordingLeave (#16828)Axel Dahlberg2022-01-04
| | |
* | | feat(filetype.lua): add support for txt files (#16926)KillTheMule2022-01-04
| | |
* | | chore: ignore unused args in filetype functions (#16927)Gregory Anders2022-01-04
| | | | | | | | | Also mark the 'getline' helper function as private to avoid docgen.
* | | test: fix absolute paths in filetype_spec (#16920)Gregory Anders2022-01-04
| | |
* | | fix(filetype): set default ft_ignore_pat in filetype.lua (#16917)Gregory Anders2022-01-04
| | | | | | | | | | | | | | | This default value is also set in filetype.vim, but if filetype.vim is disabled the variable is never defined, which causes errors in some of the dist#ft detection functions.
* | | feat(filetype.lua): Add typescript extension to filetype detection (#16923)Robin Gagnon2022-01-04
| | | | | | | | | port from `filetype.vim`; also add `getline` convenience function
* | | fix(api): force redefinition of user commands by default (#16918)Gregory Anders2022-01-04
| | |
* | | chore: fix typos (#16816)dundargoc2022-01-04
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Sebastian Volland <seb@baunz.net> Co-authored-by: Lewis Russell <lewis6991@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | fix(lsp): suppress ContentModified errors from UI (#16904)Sam McCall2022-01-04
| |/ |/| | | | | | | | | | | | | | | Fixes https://github.com/neovim/neovim/issues/16900 If clients receive a ContentModified error, it generally should not show it in the UI for the end-user. Clients can resend the request if they know how to do so. https://microsoft.github.io/language-server-protocol/specifications/specification-current/#implementationConsiderations
* | feat: filetype.lua (#16600)Gregory Anders2022-01-04
| | | | | | | | Adds a new vim.filetype module that provides support for filetype detection in Lua.
* | test: make test for #14040 more stable (#16911)Daniel Steinberg2022-01-04
| |
* | Merge pull request #16912 from shadmansaleh/enhance/lua_cmd_inspectBjörn Linse2022-01-04
|\ \ | | | | | | feat(lua): make :lua =expr print result of expr
| * | feat(lua): make =expr print result of exprshadmansaleh2022-01-04
|/ /
* | fix(lsp): explicitly pass bufnr in didSave handler (#16906)Michael Lingelbach2022-01-03
| | | | | | | | Addresses a regression introduced by the stricter type checking in lua api functions from https://github.com/neovim/neovim/pull/16745
* | Merge pull request #16903 from dundargoc/ci/install-flake-with-aptJames McCoy2022-01-03
|\ \ | | | | | | ci: install flake8 with apt instead of pip
| * | ci: install flake8 with apt instead of pipDundar Göc2022-01-03
|/ /
* | Merge pull request #16901 from dundargoc/ci/add-codeownersJames McCoy2022-01-03
|\ \ | | | | | | ci: add jamessan as codeowner for ci related files
| * | ci: add jamessan as codeowner for ci related filesDundar Göc2022-01-03
| | | | | | | | | | | | [skip ci]
* | | chore(build): compile lua only on release builds (#16859)Shadman2022-01-03
| | |
* | | fix(lsp): resolve nil bufnr (#16902)Gregory Anders2022-01-03
| | | | | | | | | Related: #16889, #16745
* | | vim-patch:8.2.3995: not all sshconfig files are detected as such (#16899)Christian Clason2022-01-03
| | | | | | | | | | | | | | | | | | Problem: Not all sshconfig files are detected as such. Solution: Adjust the patterns used for sshconfig detection. (David Auer, closes vim/vim#9322) https://github.com/vim/vim/commit/9acf2d8be93f3b50607279e7f3484b019675d0a7
* | | ci: simplify ci_fold function (#16874)dundargoc2022-01-03
| | |
* | | Merge pull request #16895 from dundargoc/ci/fix-shellcheck-warningsJames McCoy2022-01-03
|\ \ \ | |/ / |/| | ci: fix shellcheck errors introduced in version 0.8.0
| * | ci: fix shellcheck errors introduced in version 0.8.0Dundar Göc2022-01-03
| | | | | | | | | | | | | | | | | | | | | Solved following shellcheck warnings: SC2030 SC2295 SC2015
* | | fix(lua): stricter type check when calling API function (#16745)dundargoc2022-01-03
| | | | | | | | | | | | | | | Solves #13651 Co-authored-by: Gregory Anders <greg@gpanders.com>
* | | docs(usr_05): fix section numbers (#16886)Sean Dewar2022-01-03
| | | | | | | | | | | | | | | Other refs to 05.3 don't need to be updated as they refer to the simple mappings section anyway. Seems they weren't updated when the defaults.vim section was added as 05.3 instead.