| Commit message (Collapse) | Author | Age |
|
|
|
| |
Some of the tests will fail if this isn't explicitly set.
|
|\
| |
| | |
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
|
|\ \ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
Also mark the 'getline' helper function as private to avoid docgen.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | | |
port from `filetype.vim`; also add `getline` convenience function
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Adds a new vim.filetype module that provides support for filetype detection in
Lua.
|
| | |
|
|\ \
| | |
| | | |
feat(lua): make :lua =expr print result of expr
|
|/ / |
|
| |
| |
| |
| | |
Addresses a regression introduced by the stricter type checking
in lua api functions from https://github.com/neovim/neovim/pull/16745
|
|\ \
| | |
| | | |
ci: install flake8 with apt instead of pip
|
|/ / |
|
|\ \
| | |
| | | |
ci: add jamessan as codeowner for ci related files
|
| | |
| | |
| | |
| | | |
[skip ci]
|
| | | |
|
| | |
| | |
| | | |
Related: #16889, #16745
|
| | |
| | |
| | |
| | |
| | |
| | | |
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: fix shellcheck errors introduced in version 0.8.0
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Solved following shellcheck warnings:
SC2030
SC2295
SC2015
|
| | |
| | |
| | |
| | |
| | | |
Solves #13651
Co-authored-by: Gregory Anders <greg@gpanders.com>
|
| | |
| | |
| | |
| | |
| | | |
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.
|