| Commit message (Collapse) | Author | Age |
... | |
|/
|
|
|
| |
Given that the input is pre-filled with a path, it should be possible to
use dir completion.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add the buffer number to the `textDocument/formatting` request, so
that it is passed to the handler.
The built-in formatting handlers do not use the buffer number, but user
overrides should have access to it.
|
| |
|
| |
|
|
|
|
|
| |
`lsp.diagnostic.get_all()` was returning diagnotics for `:bwipeout`-ed
buffers because the diagnostic cache is not cleared. The first argument
of on_detach callback is the string "detach", not the bufnr.
|
| |
|
|\
| |
| | |
[RDY] fix(lsp): guard against negative diagnostic line numbers
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
fix(lsp): convert_input_to_markdown_lines: preserve plaintext
|
| | |
|
|/
|
|
| |
Closes #14743
|
|
|
|
|
| |
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.
|
|\ \
| | |
| | | |
fix(lsp): floating window border size for string type
|
| |/ |
|
|/
|
|
|
|
| |
Adding the line takes up valuable horizontal screen space, and also
precludes using the quickfixtextfunc built into neovim due to the
harcoded `|`.
|
| |
|
|\
| |
| |
| |
| | |
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`)
|
| | |
|
|\ \
| | |
| | | |
refactor(lsp): consolidate the different floating window methods into `open_floating_preview`
|
| | |
| | |
| | |
| | | |
open_floating_preview
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lua: Add vim.opt
* fixup: cleaning
* fixup: comments
* ty clason
* fixup: comments
* this is the last commit. period.
|
|/
|
|
|
| |
After the change to use fancy_floating_markdown for the signature help I
noticed that scratch buffers start to accumulate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
handlers passed to `lsp_buf_request` weren't called if the server
responded with an error that looks like this:
"decoded", {
error = {
code = -32601,
message = "No delegateCommandHandler for foo"
},
id = 5,
jsonrpc = "2.0"
}
An example where that happens is both eclipse.jdt.ls and the
haskell-language-server when invoking a command that doesn't exist:
:lua vim.lsp.buf_request(
0,
'workspace/executeCommand',
{ command = 'foo' },
function(err, _, res)
print(vim.inspect(err), vim.inspect(res))
end
)
|
|\
| |
| | |
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
|