| Commit message (Collapse) | Author | Age |
|
|
| |
`:syntax enable` is no longer necessary (and may even be harmful). Do not recommend it in `usr_05.txt` and `usr_06.txt`, and mention the new default in `syntax.txt`.
|
| |
|
| |
|
|
|
|
|
| |
(#18333)
Co-authored-by: ii14 <ii14@users.noreply.github.com>
|
|
|
| |
Follow up to https://github.com/neovim/neovim/pull/17814
|
|\
| |
| | |
feat(api): `nvim_parse_cmd`
|
| |
| |
| |
| | |
Adds an API function to parse a command line string and get command information from it.
|
| |
| |
| |
| |
| |
| | |
Problem: Gleam filetype not detected.
Solution: Add a pattern for Gleam files. (Mathias Jean Johansen,
closes vim/vim#10326)
https://github.com/vim/vim/commit/917c32c4f75351061a773cd5bc5b6f42c7d10e62
|
|/
|
|
|
|
|
|
| |
Deprecates the existing `vim.lsp.buf.formatting` function.
With this, `vim.lsp.buf.format` will replace all three:
- vim.lsp.buf.formatting
- vim.lsp.buf.formatting_sync
- vim.lsp.buf.formatting_seq_sync
|
| |
|
|
|
|
| |
Specify which message, or request, was last received in case of an error
instead of the same generic message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* feat(lsp)!: remove capabilities sanitization
Users must now access client.server_capabilities which matches the same
structure as the protocol.
https://microsoft.github.io/language-server-protocol/specification
client.resolved_capabilities is no longer used to gate capabilities, and
will be removed in a future release.
BREAKING CHANGE
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement two new options to vim.lsp.buf.code_action():
- filter (function): predicate taking an Action as input, and returning
a boolean.
- apply (boolean): when set to true, and there is just one remaining
action (after filtering), the action is applied without user query.
These options can, for example, be used to filter out, and automatically
apply, the action indicated by the server to be preferred:
vim.lsp.buf.code_action({
filter = function(action)
return action.isPreferred
end,
apply = true,
})
Fix #17514.
|
|
|
|
| |
Without any feedback it gives the impression that the language server is
not working properly, which isn't the case.
|
| |
|
| |
|
|
|
|
| |
Multi-char 'pastetoggle' now works without breaking character-find.
|
|
|
|
|
|
|
|
|
| |
Problem: Using \{xxx} for encoding a modifier is not nice.
Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a
different code.
https://github.com/vim/vim/commit/fccd93f0917234b962ce07d1df3adf9d7105936f
Use this notation in langmap_spec.
|
|
|
|
|
|
|
|
| |
Problem: GUI tests fail because the test doesn't use a modifier.
Solution: Add "\{xxx}" to be able to encode a modifier.
https://github.com/vim/vim/commit/ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf
Change macros to enums to use them in unit tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This marks the following Vim patches as ported:
vim-patch:8.1.2333: with modifyOtherKeys CTRL-^ doesn't work
Problem: With modifyOtherKeys CTRL-^ doesn't work.
Solution: Handle the exception.
https://github.com/vim/vim/commit/828ffd596394f714270a01a55fc3f949a8bd9b35
vim-patch:8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeys
Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys.
Solution: Convert the Escape sequence back to key as if modifyOtherKeys is
not set, and use CTRL-SHIFT-V to get the Escape sequence itself.
(closes vim/vim#5254)
https://github.com/vim/vim/commit/fc4ea2a72d36de1196a3ce17352e72f8fe90f4bb
vim-patch:8.2.2084: CTRL-V U doesn't work to enter a Unicode character
Problem: CTRL-V U doesn't work to enter a Unicode character when
modifyOtherKeys is effective. (Ken Takata)
Solution: Add a flag to get_literal() for the shift key. (closes vim/vim#7413)
https://github.com/vim/vim/commit/0684e36a7ee0743f2889698fb8e0e14f7acae423
Omit getcmdkeycmd() change as it depends on Vim patch 8.2.2062, which
may introduce a potential breakage.
|
|
|
|
|
|
| |
Update runtime files
https://github.com/vim/vim/commit/ce001a337e28fa368f40ac6422835d730fb8ebb1
also add `vimStdPlugin` keywords missing from previous updates
|
|
|
|
|
|
|
|
|
|
|
| |
Problem:
winpty is only needed for Windows 8.1. Removing it reduces our build and code
complexity.
Solution:
- Remove winpty.
- Require Windows 10.
closes #18252
|
|
|
|
|
|
|
|
|
|
| |
Problem:
I had some issues where multiple plugins (vim-fzf and fugitive) was slow
because of my `.zshenv`.
Solution:
Check shell performance in :checkhealth.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
|
|
|
|
|
| |
Some language servers send empty `textDocument/publishDiagnostics`
messages after indexing the project with URIs corresponding to unopened buffers.
This commit guards against opening buffers corresponding to empty diagnostics.
|
|
|
|
|
|
| |
On startup query the terminal for CSI u support and enable it using
the escape sequence from kitty's progressive enhancement protocol [1].
[1]: https://sw.kovidgoyal.net/kitty/keyboard-protocol/
|
|
|
|
|
|
|
| |
Problem: Using matchfuzzy() on a long list can take a while.
Solution: Add a limit to the number of matches. (Yasuhiro Matsumoto,
closes vim/vim#10189)
https://github.com/vim/vim/commit/9029a6e9931eede1d44f613687a2c01b9fe514ec
|
|
|
|
|
| |
Problem: .cshtml files are not recognized.
Solution: Use html filetype for .cshtml files. (Julien Voisin, closes vim/vim#10212)
https://github.com/vim/vim/commit/1f435dafff2452e0b55d1ca457ce7402e526e92a
|
|
|
|
|
|
|
|
|
|
|
| |
The default value of including F in 'shortmess' has the unfortunate side
effect of hiding output from autocommands. This is a common source of
confusion and often leads people to think their autocommands are not
working when they are. There is a small snippet in the docs for
'shortmess' indicating that the F flag suppresses autocmd output, but
it's not easy to find if you don't already know to look for it.
This commit removes that behavior of the F flag to make it only suppress
file info when opening a new file.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 526798a941b4cf80fd1f128b40e51fb47c77b654.
This will make man filetype not modifiable by default, as it is the
superior behavior in my opinion. More importantly, also make it possible
for a user to modify man filetypes by adding `set modifiable` in
`~/.config/nvim/ftplugin/man.vim` or its equivalent.
ref #11450
closes #17595
Co-authored-by: Javier López <graulopezjavier@gmail.com>
|
|
|
|
| |
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
|
|
|
| |
Closes: https://github.com/neovim/neovim/issues/12691
|
|
|
| |
In `filetype.lua`, source runtime `ftdetect` scripts within the `filetypedetect` augroup, same as `filetype.vim` (and only do so if `g:did_load_ftdetect` does not exist).
|
|
|
|
|
|
| |
`vim.keymap.del` takes an `opts` parameter that lets caller refer to and
delete buffer-local mappings. For some reason the implementation of
`vim.keymap.del` mutates the table that is passed in, setting
`opts.buffer` to `nil`. This is wrong and also undocumented.
|
|
|
|
| |
parser (#18149)
|
|\
| |
| | |
chore: update inspect.lua to 3.1.3
|
| | |
|
|/
|
| |
also correct explanation of when it's allowed to omit parens in Lua function calls
|
| |
|
|\
| |
| | |
vim-patch:8.2.{4781,4793}: maxima files are not recognized
|
| |
| |
| |
| |
| |
| | |
Problem: Recognizing Maxima filetype even though it might be another.
Solution: Remove *.mc and *.dem patterns from Maxima files
https://github.com/vim/vim/commit/928a13135629fa8e73796760077b1b877918a080
|
| |
| |
| |
| |
| |
| | |
Problem: Maxima files are not recognized.
Solution: Add patterns to detect Maxima files. (Doron Behar, closes vim/vim#10211)
https://github.com/vim/vim/commit/d0a20c9d111da75febb60ffee2e15f727ab6a5ad
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Some people ran into issues trying to use `callback = myluafun` because
of the event data payload.
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The LSP progress handler would put non-progress messages (such as from
clangd or pyls; not part of the LSP spec) directly into
`client.messages`, while `vim.lsp.util.get_progress_messages()` would
try to fetch them from `client.messages.messages` instead (and come up
empty everytime). This would result in these messages never being
cleaned up by `get_progress_messages()`.
This commit fixes that by treating those messages like show-once
progress messages (by setting `done=true` immediately).
|
| |
| |
| |
| |
| | |
Use nvim_exec_autocmds to issue the DiagnosticChanged autocommand,
rather than nvim_buf_call, which has some side effects when drawing
statuslines.
|
|\ \
| |/
|/| |
feat(api): allow remote UI to set terminal options
|
| | |
|
| |
| |
| |
| |
| | |
Problem: Lilypond filetype not recognized.
Solution: Add patterns for lilypond. (Doug Kearns)
https://github.com/vim/vim/commit/c448e9c95089b5e7170a0dd36635a226c5eb5b1c
|
|\ \
| | |
| | | |
feat: add `undo!`
|
| | |
| | |
| | |
| | | |
Allows using `undo!` to undo changes and remove them from the undo-tree. Can only be used for moving backwards in the same undo branch.
|