| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
When attr_id is 0, the cursor's colors should be swapped, otherwise the
cursor might be invisible.
Closes #12198
|
| |
|
|\
| |
| | |
lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
|
| |
| |
| |
| |
| | |
By passing through completion_item it's now possible for snippet plugins
to add LSP snippet support.
|
| |
| |
| |
| |
| |
| | |
Problem: Complete item "user_data" can only be a string.
Solution: Accept any type of variable. (closes vim/vim#5412)
https://github.com/vim/vim/commit/0892832bb6c7e322fcae8560eaad5a8140ee4a06
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit creates 4 new highlight groups:
- LspDiagnosticsErrorSign
- LspDiagnosticsWarningSign
- LspDiagnosticsInformationSign
- LspDiagnosticsHintSign
These highlight groups are linked to their corresponding LspDiagnostics
highlight groups by default.
This lets users choose a different color for their sign columns and
virtualtext diagnostics.
|
| | |
|
|/
|
|
|
| |
ref: #12164
fix #12201
sign_getdefined() returns a list, {} if the sign is not defined.
|
| |
|
|
|
|
| |
CompleteChanged
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Problem: The "last used" info of a buffer is under used.
Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used
field. (Andi Massimino, closes vim/vim#4722)
https://github.com/vim/vim/commit/52410575be50d5c40bbe6380159df48cfc382ceb
|
| |
| |
| |
| |
| |
| | |
Problem: Cannot filter :ls output for terminal buffers.
Solution: Add flags for terminal buffers. (Marcin Szamotulski, closes vim/vim#2751)
https://github.com/vim/vim/commit/0751f51a5b428805a8c1e9fe529693d032bec991
|
| |
| |
| | |
fix #12162
|
| |
| |
| | |
Messed this up in ef0398fe88e6cc74f33fb20519997774168d7832
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
According to the spec there is the possibility that when a
VersionedTextDocumentIdentifier is used in a TextEdit the value may be
null. Currently we don't check for this and always assume that it's set.
So currently if a TextEdit comes in for a rename for example with the
version null, it fails as we are comparing the bufnumber with nil.
https://microsoft.github.io/language-server-protocol/specification#versionedTextDocumentIdentifier
|
| |
| |
| |
| |
| |
| | |
The method with the name 'textDocument/peekDefinition' is not part of
the official language server protocol specification. Therefore no
language server can/will support this. Thereby all related code and
documentation as been removed.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Expose `vim.lsp.buf.diagnostics_by_buf`
This makes it easier to customize the diagnostics behavior. For example
to defer the update they can override the
`textDocument/publishDiagnostics` callback to only call
`buf_diagnostics_save_positions` and then defer the other actions to a
autocmd event.
|
| |
| |
| |
| | |
When we save the buffer, the buffer is detached and attached again.
So the client also needs to remove the buffer version once.
|
| |
| |
| |
| |
| |
| |
| |
| | |
In contrast to other callbacks for LSP requests like
`textDocument/documentSymbols`, does the one for references not open the
quickfix window after the quickfix list was filled. This left the user
in a situation he don't know what or if something had happen.
Related to: neovim/neovim#12170
|
| |
| |
| |
| |
| |
| |
| |
| | |
There is ErrorCodes in the LSP specification, but in ResponseError.code
it is not used and the actual type is number.
Some language servers response original error cods and this is valid spec.
So we shouldn't assert even if the code does not exist in ErrorCodes.
ref: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#responseMessage
|
| |
| |
| |
| |
| | |
* https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition
Co-authored-by: Khangal Jargalsaikhan <khangal.j@irbis.sg>
|
| | |
|
|\ \
| | |
| | | |
LSP/completion: add textEdit support
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
According to lsp specification, value of insertText should be ignored if
textEdit is provided.
|
| |/
|/|
| | |
This function is also useful for users to create their own `textDocument/signatureHelp` callback function.
|
| | |
|
| |
| |
| |
| |
| |
| | |
InsertCharPre to CursolMovedI (#11954)
In the case of InsertCharPre, it is inconvenient because the signature help is displayed
when backspaced in insert mode, so change it to CursolMovedI.
|
| |
| |
| |
| |
| |
| | |
Before this commit, the LSP client would throw errors when messages
without severity would be sent by the server. We make severity default
to `Error` as a kludge before proper heuristics to discover the severity
of a message are found.
|
|\ \
| | |
| | |
| | |
| | |
| | | |
[RFC] Update treesitter runtime
Get rid of our utf8proc dependency
Note that we unconditionnally escape treesitter queries, might need to be revisited.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Treesitter changed their decoders and apparently thus causing this
change.
This decoder change happened on
ee9a3c0ebb218990cf391ed987be7f2448c54a73.
|
|/ /
| |
| |
| |
| |
| | |
Problem: .bsd file type not recognized.
Solution: Recognize .bsd as BSDL. (Daniel Kho, closes vim/vim#5945)
https://github.com/vim/vim/commit/0fc1288aefce25da0a2fb2a0aab75b0bd314403f
|
| |
| |
| | |
Updates remaining ~/.vim with ~/.config/nvim
|
| |
| |
| |
| |
| |
| |
| | |
Fix #12122
>Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:560: Expected lua string
Some lsp server(e.g. https://github.com/bash-lsp/bash-language-server) not have kind in reference, reference["kind"] is nil
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#12124)
On some versions of Windows, WSL is unable to execute symbolic links to
Windows executables (microsoft/WSL#3999). As a workaround for that problem
this changes to use resolve() on WSL if win32yank was a symbolic link.
fixes #12113.
|
| |
| |
| |
| |
| |
| | |
Problem: User systemd files not recognized.
Solution: Add filetype patterns. (Kevin Locke, closes vim/vim#5914)
https://github.com/vim/vim/commit/3b922f11380c7dbf94ee45bc09d688b772d9707f
|
| |
| |
| |
| |
| |
| | |
Problem: Bsdl filetype is not detected.
Solution: Add an entry in the filetype list. (Daniel Kho, closes vim/vim#5810)
https://github.com/vim/vim/commit/40d235e7305ce6ff696e8301c62a41f1f07f8aca
|
| |
| |
| |
| |
| |
| | |
netrw thinks it's a remote file due the name of a terminal buffer (term://),
but a terminal buffer isn't a file.
Fixes https://github.com/neovim/neovim/issues/4612#issuecomment-600321171
|
| | |
|
| |
| |
| |
| |
| | |
fix: #12056
If the colon of the drive letter of windows is URI encoded,
it doesn't match the expected pattern, so decode it first.
|
|\ \
| | |
| | | |
[RFC] Wildmenu support C-E and C-Y as popupmenu
|
| | |
| | |
| | |
| | |
| | | |
Fix typos, capitalization to match block, and remove the angle brackets
on the CTRL keys to match other documentation.
|
| | |
| | |
| | |
| | | |
Add description of C-Y and C-E in wildmenu completion
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(#11854)
Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff'
Author: Bram Moolenar
https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7
|
|\ \ \
| | | |
| | | | |
LSP: Use buffer version instead of changedtick for edits
|
| | | | |
|
| |_|/
|/| |
| | |
| | |
| | |
| | | |
Problem: Yaml files are only recognized by the file extension.
Solution: Check for a line starting with "%YAML". (Jason Franklin)
https://github.com/vim/vim/commit/8eab73132838e977092d7b46f70b4ecf6274fd6a
|
| | |
| | |
| | |
| | | |
According to the LSP specification, showMessage is what is displayed and logMessage is what is stored.
Since these are different things, I devide the callback into those that match.
|
|\ \ \
| | | |
| | | | |
[RFC] foldcolumn autowidth
|