aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp
Commit message (Collapse)AuthorAge
* lsp: Fix range end offset off by one characterMickaël Menu2021-05-14
|
* Merge pull request #14334 from DarwinSenior/vim.logMichael Lingelbach2021-05-02
|\ | | | | lsp: deep copy vim.lsp.log when reloading
| * lsp: deep copy vim.lsp.log when reloadingDingcheng Yue2021-04-16
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #14462 from kabouzeid/feature/formatting_seq_syncMichael Lingelbach2021-05-02
|\ \ | | | | | | [LSP] Support for sequential formatting with multiple clients
| * | Synchronous formatting methods notify the user on timeout and interruptedKarim Abou Zeid2021-05-02
| | |
| * | Support multiple range formatting clientsKarim Abou Zeid2021-05-02
| | |
| * | Add formatting_seq_sync, change formatting and formatting_syncKarim Abou Zeid2021-05-01
| | |
* | | lsp: fix regression in jump_to_location() (#14446)francisco souza2021-05-01
| | | | | | | | | | | | | | | This fixes a regression that was introduced in [1] by accidentally leaving out a line. 1: https://github.com/neovim/neovim/pull/12262
* | | lsp: Allow decoded.result to be `false`Mathias Fussenegger2021-04-30
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 )
* | lsp: make tagstack smarter motion-wise (#12262)Gabriel Sanches2021-04-23
| | | | | | | | | | | | | | | | | | | | | | 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.
* | lsp: check if config is nilMarco Hinz2021-04-23
| |
* | lsp: sort diagnostics by severity (#14372)Marco Hinz2021-04-23
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | lsp: Remove vim.NIL handling from apply_text_document_editMathias Fussenegger2021-04-14
| | | | | | | | | | The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested should never happen.
* | lsp: Accept text document edits with version zeroMathias Fussenegger2021-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | lsp: fix _make_floating_popup_size when wrap_at is nil (#14359)Michael Lingelbach2021-04-14
| |
* | lsp: fix off-by-one in line diagnostic highlightingMarco Hinz2021-04-14
| |
* | lsp: correct float placement when using bordersMarco Hinz2021-04-12
| | | | | | | | | | 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.
* | lsp: make sure borders are always inside of the screenMarco Hinz2021-04-12
|/ | | | | 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.
* Merge pull request #14309 from mjlbach/feature/hover_return_win_bufMichael Lingelbach2021-04-07
|\ | | | | lsp: hover window should return buf/winnr from focusable float
| * lsp: hover window should return buf/winnr from focusable floatMichael Lingelbach2021-04-07
| |
* | lsp: update documentation on window bordersMichael Lingelbach2021-04-06
|/
* feat(lsp): make hover/signature_help borders configurableelianiva2021-04-06
| | | | | | change hl groups for the example rename borders -> border
* lsp: floating window improvements (#14207)Michael Lingelbach2021-04-05
| | | | * remove left/right padding feature from trim_and_pad * use invisible borders by default on floating windows
* lsp: allow launching language servers with uv_spawn using cwd argMichael Lingelbach2021-04-01
|
* lsp: use utf-8 when utf-16 not requestedMichael Lingelbach2021-03-30
|
* lsp: fix utf-16 ranges to use second return value for incremental syncMichael Lingelbach2021-03-28
|
* Merge pull request #14231 from mjlbach/fix_utf16_rangesMichael Lingelbach2021-03-27
|\ | | | | lsp: fix utf16 ranges for incremental sync
| * lsp: fix utf16 ranges for incremental syncMichael Lingelbach2021-03-27
| |
* | Merge pull request #14186 from mjlbach/feature/make_signature_help_beautifulMichael Lingelbach2021-03-23
|\ \ | |/ |/| lsp: add syntax highlighting to signature help
| * lsp: add syntax highlighting to signature helpMichael Lingelbach2021-03-22
| |
* | lsp: Unopened buffers return 0 for line count, which leads to broken positionsTJ DeVries2021-03-22
| |
* | runtime/lua/vim/lsp: check emptyness in get_completion_wordVincent Rischmann2021-03-21
| |
* | lsp: set syntax instead of filetype for preview location highlightingMichael Lingelbach2021-03-19
|/
* lsp: Add support for delete workspaceEdit resource operationMathias Fussenegger2021-03-18
|
* lsp: Add support for create workspaceEdit resource operationMathias Fussenegger2021-03-18
|
* lsp: Add support for file rename via workspaceEditMathias Fussenegger2021-03-18
|
* lsp: fix highlighting for lsp markdown code blocksMichael Lingelbach2021-03-10
|
* Merge pull request #14073 from mjlbach/feature/syntax_highlight_ruleMichael Lingelbach2021-03-10
|\ | | | | lsp: add custom syntax rule for floating window
| * lsp: add custom syntax rules for lsp floating windowMichael Lingelbach2021-03-09
| |
* | lsp: Resolve codeLense server capabilities (#14056)Josa Gesell2021-03-10
| |
* | lsp: add incremental text synchronizationMichael Lingelbach2021-03-09
| | | | | | | | | | * Implementation derived from and validated by vim-lsc authored by Nate Bosch
* | Merge pull request #13993 from teto/gendocMatthieu Coudron2021-03-07
|\ \ | |/ |/| improve vimdoc generation
| * chore: rename progress_callback to progress_handlerMatthieu Coudron2021-03-04
| |
* | Merge pull request #13919 from TheAlakazam/lsplogfixMichael Lingelbach2021-03-06
|\ \ | | | | | | fix: fix empty line in lsp log after each run
| * | lsp: add explicit entry on lsp log startPiyush Jaipuriyar2021-03-06
| | | | | | | | | | | | fix: address typo and review comments
* | | lsp: fix diagnostic reported on terminating EOL characterMichael Lingelbach2021-03-02
| |/ |/|
* | fix: show error when language server start fails and prevent future requestsDavid Zhang2021-02-26
| |
* | LSP: Resolve text_document_save capability according to specMathias Fussenegger2021-02-25
| | | | | | | | | | Fixes https://github.com/neovim/neovim/issues/13989 See https://github.com/microsoft/language-server-protocol/issues/288
* | [LSP] Add in more docs for highlight groups with document_highlight() (#13614)Chris Kipp2021-02-24
| | | | | | | | | | | | Currently it's not 100% clear that without setting these, using the autocomds to utilize the `textDocument/documentHighlight` functionality, nothing will actually be visible since the highlight groups don't have any details. This just adds in a couple simple extra notes to make sure that's done
* | lsp: remove deprecated references to 'callbacks' (#13945)Matthieu Coudron2021-02-23
| | | | | | | | | | vim.lsp.callbacks was deprecated a few months ago. This is a cleanup before the release. Use vim.lsp.handlers instead.