| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
- Fix the cursor position after applying TextEdits
- Support reversed range of TextEdit
- Invoke nvim_buf_set_text one by one
|
|
|
|
| |
Fixes #15522
|
| |
|
|
|
| |
No point in adding and then subtracting I believe ;)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Makes it easier to re-use the logic to populate the quickfix list
instead of the location list.
|
|\
| |
| | |
fix(lsp): max 1 floating preview per buffer. Fixes #11508
|
| | |
|
| |
| |
| |
| | |
add option to show workspace diagnostic instead of the current buffer's
|
| | |
|
|\ \
| | |
| | | |
fix(lsp): set_loclist should target current win
|
| |/
| |
| |
| |
| |
| | |
Currently, for large number of diagnostics, the delay in populating
loclist may be sufficient for a user to switch to another window,
resulting in the loclist being populated on the wrong window.
|
|/ |
|
|\
| |
| |
| |
| | |
shadmansaleh/enhance/lsp/make_focusable_parameter_configurable
feat(lsp): Make focusability of lsp float configurable
|
| |
| |
| |
| |
| |
| | |
In the documentation for `vim.lsp.util.open_floating_preview`
the opts table keys were prefixed with `--` instead of `---`,
preventing capture by docgen.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This pr allows the user to specify whether `lsp.utils.open_floating_preview`
is focusable via the `opts` parameter. Defaults to true.
It can be configured by setting the focusable key inside opts parameter:
```lua
vim.lsp.util.open_floating_preview(contents, syntax, {focusable = false})
```
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Fixes #14691
|
|\ \
| |/
|/| |
perf(lsp): get all lines from a file in one go (`locations_to_items`)
|
| | |
|
| |
| |
| |
| | |
open_floating_preview
|
|/
|
|
|
| |
After the change to use fancy_floating_markdown for the signature help I
noticed that scratch buffers start to accumulate.
|
|\
| |
| | |
perf(lsp): `locations_to_items`: use libuv for unloaded buffers to get line
|
| | |
|
|\ \
| | |
| | | |
fix(lsp): prefer selectionRange over range for document symbols in vim.lsp.util.symbols_to_items
|
| | | |
|
|\ \ \
| |_|/
|/| | |
fix(lsp): allow apply_text_edits to append text (insert at last line)
|
| | |
| | |
| | |
| | | |
line. Fixes #14017
|
| | | |
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fix: fancy_floating_markdown: syn region must include keepend to make sure syntax regions are applied correctly. Fixes #14594
feat: fancy_floating_markdown: handle <pre></pre> code blocks as a markdown code block with plaintext
fix: possible nil check for markdown code blocks till end of buffer
refactor: only one check is needed to see if stripped[h.finish +1] is valid
fix(lsp): dont't set doc ownsyntax, since it breaks contained syntaxes. Set regions for the markdown blocks intsead
fix: apply markdown formatting for code blocks without a language
fix: use markdownCodeBlock when no language was set in a code block
|
|\ \
| | |
| | | |
lsp: handle case where CompletionItem.insertTextFormat is nil
|
| | |
| | |
| | |
| | | |
* Update tests to use explicit insertTextFormat for snippets
|
| | |
| | |
| | |
| | | |
This reverts commit 8885ea7f244ee49b0018dc57be84917ea7886c2d.
|
| | |
| | |
| | |
| | | |
This reverts commit 993ca90c9b53033216d4973e2f995b995ed5740e.
|
|/ / |
|
| |
| |
| |
| |
| | |
This fixes a regression that was introduced in [1] by accidentally leaving out a line.
1: https://github.com/neovim/neovim/pull/12262
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
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.
|