| Commit message (Collapse) | Author | Age |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* vim-patch:8.2.4064: foam files are not detected
Problem: Foam files are not detected.
Solution: Detect the foam filetype by the path and file contents. (Mohammed
Elwardi Fadeli, closes vim/vim#9501)
https://github.com/vim/vim/commit/2284f6cca384e0ccc352bfec7277dc26386cac3d
* Port foam ft detection to filetype.lua
Co-authored-by: Gregory Anders <greg@gpanders.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Part of the `pending_change` closure in the `changetracking.prepare` was
a bit confusing because it has access to `bufnr` and `uri` but it could
actually contain pending changes batched for multiple buffers.
(We accounted for that by grouping `pending_changes` by a `uri`, but
it's not obvious what's going on)
This commit changes the approach to do everything per buffer to avoid
any ambiguity.
It also brings the debounce/no-debounce a bit closer together: The
only difference is now whether a timer is used or if it is triggered
immediately
|
|\ \ \ \
| | | | |
| | | | | |
vim-patch:8.2.3409
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
Update runtime files
https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b
|
|\ \ \ \
| |_|/ /
|/| | | |
vim-patch:8.2.3582
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Problem: Reading uninitialized memory when giving spell suggestions.
Solution: Check that preword is not empty.
https://github.com/vim/vim/commit/15d9890eee53afc61eb0a03b878a19cb5672f732
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
fix(completion): prevent K_LUA from closing pum
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
feat(treesitter): set allocator when possible
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds a new cmake check to keep this backwards compatible with the
different versions of tree-sitter.
|
|\ \ \ \
| | | | |
| | | | | |
ci: add a continue-on-error to the add-reviewer jobs
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is to circumvent a limitation in GitHub Actions that requires
special organization access in order to add any reviewers.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
refactor(PVS/V1048): prevent "variable was assigned the same value" warning
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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).
|
| | | | |
| | | | |
| | | | |
| | | | | |
The name argument of nvim_add_user_command must begin with an uppercase
character. Check that is does.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
ci: add reviewer based on label
|
|/ / / /
| | | |
| | | |
| | | | |
Also remove CODEOWNERS since this is a superior solution.
|
|\ \ \ \
| | | | |
| | | | | |
test: add VIMRUNTIME variable to the clear function
|
| | | | |
| | | | |
| | | | |
| | | | | |
Some of the tests will fail if this isn't explicitly set.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
ci: use continue-on-error instead of "|| true"
|
| |/ / /
| | | |
| | | |
| | | | |
The intention is clearer and doesn't rely on shell-isms.
|
|\ \ \ \
| | | | |
| | | | | |
ci: set CLANG_SANITIZER variable to TSAN when running the tsan job
|
| | |_|/
| |/| | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
refactor: avoid overflow by explicitly casting operand to a wider type
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
|
| | | | | |
|
| |_|/ /
|/| | |
| | | | |
It just types :terminal<CR> into the terminal, which is redundant.
|
|\ \ \ \
| | | | |
| | | | | |
Make mode() return correct value in ex mode
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | | |
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).
|
|/ / /
| | |
| | |
| | |
| | | |
Problem: Running filetype tests leaves directory behind.
Solution: Delete the top directory. (closes vim/vim#9483)
https://github.com/vim/vim/commit/a4c96252b12c9ebc0ba563694c064e500d707b06
|
|\ \ \ |
|
|/ / /
| | |
| | |
| | |
| | | |
This should prevent the scenario of one job accidentally removing a
relevant label from the other.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(#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
|
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | | |
Avoids `E28: No such highlight group name: markdownError` when using a
foreign markdown syntax.
|
| | | |
|
| | |
| | |
| | | |
Like vim.notify(), but only displays the notification once.
|
|\ \ \
| | | |
| | | | |
feat(lua): add support for lua keymaps
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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 })
```
|
|\ \ \ \
| |_|_|/
|/| | | |
vim-patch:8.2.3921: the way xdiff is used is inefficient
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|