| Commit message (Collapse) | Author | Age |
... | |
| | |
| | |
| | |
| | | |
* Update tests to use explicit insertTextFormat for snippets
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Unfortunately, there are some subtle bugs in the smarter tagstack changes,
so we'll revert them for now and try to come up with a better approach.
One of the added tests, adds current position to jumplist before jumping,
is valuable though and changed to still work after reverting the other two
commits.
Closes #14571
|
| | | |
| | | |
| | | |
| | | | |
This reverts commit 8885ea7f244ee49b0018dc57be84917ea7886c2d.
|
| | | |
| | | |
| | | |
| | | | |
This reverts commit 993ca90c9b53033216d4973e2f995b995ed5740e.
|
|/ / / |
|
|/ / |
|
|\ \
| | |
| | | |
lsp: deep copy vim.lsp.log when reloading
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If vim.lsp.log is loaded the second time,
the vim.log.levels will be modified with additional
entries from 0-5.
This will cause the require to fail as level:lower does
not exists on numbered value.
|
|\ \ \
| | | |
| | | | |
[LSP] Support for sequential formatting with multiple clients
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes a regression that was introduced in [1] by accidentally leaving out a line.
1: https://github.com/neovim/neovim/pull/12262
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some servers might respond to `workspace/executeCommand` requests with a
boolean result and that could be `false`.
A `false` result should be allowed and not trigger the `on_error`
handler:
-- Invalid server message
on_error(client_errors.INVALID_SERVER_MESSAGE, decoded)
Concrete example where this occurred is with eclipse.jdt.ls:
vim.lsp.buf_request(
0,
'workspace/executeCommand',
{
command = 'java.project.isTestFile',
arguments = { vim.uri_from_bufnr(0), },
},
function(err, _, resp)
print(vim.inspect(err), vim.inspect(resp))
end
)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit prevents two things regarding the tagstack and jumping to
locations:
- Pushing the same item twice in a row
- Pushing an item where the destination is the same as the source
Both prevent having to press CTRL-T additional times just to pop items
that don't make the cursor move.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Allow to sort diagnostics (and thus signs and virtual text) by severity, so that
the most important message is shown first.
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
severity_sort = true,
}
)
Fixes https://github.com/neovim/neovim/issues/13929
|
| | |
| | |
| | |
| | |
| | | |
The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested
should never happen.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There were a couple of reports of "Buffer X newer than edits" problems.
We first assumed that it is incorrect for a server to send 0 as a
version - and stated that they should send a `null` instead, given that
in the specification the `textDocument` of a `TextDocumentEdit` is a
`OptionalVersionedTextDocumentIdentifier`.
But it turns out that this was a change in 3.16, and in 3.15 and earlier
versions of the specification it was a `VersionedTextDocumentIdentifier`
and language servers didn't have a better option than sending `0` if
they don't keep track of the version numbers.
So this changes the version check to always accept `0` values.
See
- https://github.com/neovim/neovim/issues/12970
- https://github.com/neovim/neovim/issues/14256
- https://github.com/haskell/haskell-language-server/pull/1727
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Because borders add up to 2 to the height of a float, we need to subtract that
from the anchor position, when opening a float in the lower half of the window.
|
|/ /
| |
| |
| |
| | |
Add a helper function to get the additional width a border adds to a float to
make sure that the border is always inside the visible screen.
|
|\ \
| | |
| | | |
lsp: hover window should return buf/winnr from focusable float
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
change hl groups for the example
rename borders -> border
|
| |
| |
| |
| | |
* remove left/right padding feature from trim_and_pad
* use invisible borders by default on floating windows
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
lsp: fix utf16 ranges for incremental sync
|
| | |
|
|\ \
| |/
|/| |
lsp: add syntax highlighting to signature help
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
lsp: add custom syntax rule for floating window
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
* Implementation derived from and validated by vim-lsc authored by Nate
Bosch
|
|\ \
| |/
|/| |
improve vimdoc generation
|
| | |
|
|\ \
| | |
| | | |
fix: fix empty line in lsp log after each run
|
| | |
| | |
| | |
| | | |
fix: address typo and review comments
|