aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge pull request #16962 from f380cedric/vim-8.2.3409Thomas Vigouroux2022-01-11
|\ | | | | vim-patch:8.2.3409
| * vim-patch:8.2.3409: reading beyond end of line with invalid utf-8 characterf380cedric2022-01-06
| | | | | | | | | | | | | | | | Problem: Reading beyond end of line with invalid utf-8 character. Solution: Check for NUL when advancing. https://github.com/vim/vim/commit/65b605665997fad54ef39a93199e305af2fe4d7f Dropped the non-test part, since it is only non-utf8 related.
* | vim-patch:2f0936cb9a2e (#17007)Christian Clason2022-01-11
| | | | | | | | | | | | * vim-patch:2f0936cb9a2e Update runtime files https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b
* | Merge pull request #16961 from f380cedric/vim-8.2.3582Thomas Vigouroux2022-01-11
|\ \ | | | | | | vim-patch:8.2.3582
| * | vim-patch:8.2.3582: reading uninitialized memory when giving spell suggestionsf380cedric2022-01-06
| |/ | | | | | | | | | | Problem: Reading uninitialized memory when giving spell suggestions. Solution: Check that preword is not empty. https://github.com/vim/vim/commit/15d9890eee53afc61eb0a03b878a19cb5672f732
* | fix(man.vim): fix search function on some systems (#13709)Will Eccles2022-01-10
| | | | | | | | | | Fixes man.vim's searching on some systems (namely mandoc) where previously it would not respect the value of b:man_default_sects. It now properly parses man pages on these systems.
* | fix(lsp): ensure pending changes are flushed on skipped debounce (#17015)Mathias Fußenegger2022-01-10
| | | | | | | | | | | | | | | | | | Follow up to https://github.com/neovim/neovim/pull/16881 Document changes could get sent out of order to the server: 1. on_lines: debounce > 0; add to pending changes; setup timer 2. on_lines: debounce = 0; send new changes immediately 3. timer triggers, sending changes from 1.
* | Merge pull request #17025 from zeertzjq/compl-k-luabfredl2022-01-10
|\ \ | | | | | | fix(completion): prevent K_LUA from closing pum
| * | fix(completion): prevent K_LUA from closing pumzeertzjq2022-01-10
| | |
* | | Merge pull request #17006 from vigoux/tree-sitter-allocThomas Vigouroux2022-01-10
|\ \ \ | |/ / |/| | feat(treesitter): set allocator when possible
| * | feat(treesitter): set allocator when possibleThomas Vigouroux2022-01-09
| | | | | | | | | | | | | | | Adds a new cmake check to keep this backwards compatible with the different versions of tree-sitter.
* | | Merge pull request #17013 from dundargoc/ci/continue-on-errorJames McCoy2022-01-09
|\ \ \ | | | | | | | | ci: add a continue-on-error to the add-reviewer jobs
| * | | ci: add a continue-on-error to the add-reviewer jobsDundar Göc2022-01-09
| | | | | | | | | | | | | | | | | | | | This is to circumvent a limitation in GitHub Actions that requires special organization access in order to add any reviewers.
* | | | Merge pull request #16849 from dundargoc/refactor/pvs/v1048bfredl2022-01-09
|\ \ \ \ | |/ / / |/| | | refactor(PVS/V1048): prevent "variable was assigned the same value" warning
| * | | refactor(PVS/V1048): ignore "assigned the same value" warningDundar Göc2022-01-08
| | | |
* | | | test: use old style test for testing filetype.lua (#17003)Gregory Anders2022-01-09
| | | | | | | | | | | | | | | | | | | | This is a much better solution than #16942 as it doesn't require copying every new change from test_filetype.vim into filetype_spec.lua (which is much more maintainable).
* | | | fix(api): validate user_command name (#17004)Lewis Russell2022-01-09
| | | | | | | | | | | | | | | | The name argument of nvim_add_user_command must begin with an uppercase character. Check that is does.
* | | | Merge pull request #16965 from dundargoc/ci/add-reviewer-based-on-labelJames McCoy2022-01-09
|\ \ \ \ | |_|/ / |/| | | ci: add reviewer based on label
| * | | ci: add reviewer based on labelDundar Göc2022-01-09
|/ / / | | | | | | | | | Also remove CODEOWNERS since this is a superior solution.
* | | Merge pull request #16983 from dundargoc/test/add-vimruntime-variableJames McCoy2022-01-08
|\ \ \ | | | | | | | | test: add VIMRUNTIME variable to the clear function
| * | | 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 #17000 from dundargoc/ci/use-continue-on-errorJames McCoy2022-01-08
|\ \ \ \ | |_|/ / |/| | | ci: use continue-on-error instead of "|| true"
| * | | ci: use continue-on-error instead of "|| true"Dundar Göc2022-01-08
| |/ / | | | | | | | | | The intention is clearer and doesn't rely on shell-isms.
* | | Merge pull request #16979 from dundargoc/ci/add-tsan-clang-sanitizerJames McCoy2022-01-08
|\ \ \ | | | | | | | | ci: set CLANG_SANITIZER variable to TSAN when running the tsan job
| * | | ci: set CLANG_SANITIZER variable to TSAN when running the tsan jobDundar Göc2022-01-07
| | | |
* | | | fix(lsp): only send valid params in executeCommand (#16987)Michael Lingelbach2022-01-08
| | | |
* | | | Merge pull request #16848 from dundargoc/refactor/prevent-overflow-by-castingbfredl2022-01-08
|\ \ \ \ | | | | | | | | | | refactor: avoid overflow by explicitly casting operand to a wider type
| * | | | chore(fixup): bfredl size_tDundar Göc2022-01-01
| | | | |
| * | | | chore(fixup): zeerdundargoc2022-01-01
| | | | | | | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * | | | refactor: avoid overflow by explicitly casting operand to a wider typeDundar Göc2021-12-31
| | | | |
* | | | | test: remove redundant feed_command('terminal') (#16993)zeertzjq2022-01-08
| |_|/ / |/| | | | | | | It just types :terminal<CR> into the terminal, which is redundant.
* | | | 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
| | | | |