aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp
Commit message (Collapse)AuthorAge
* feat: aggregate code actions from all clients (#15121)Folke Lemaitre2021-07-18
|
* doc(lsp): various small fixes (#15113)Ido Ariel2021-07-17
| | | | | | - remove incorrect usage of docstrings - fix make_formatting_params return type documentation to 'DocumentFormattingParams' - make progress_handler private - fix links
* fix(lsp): pass bufnr for async formatting (#15084)Michael Lingelbach2021-07-14
| | | | | | the `textDocument/rangeFormatting` nad `textDocument/formatting` did not pass bufnr to apply_text_edits, meaning edits were applied to the user's currently active buffer. This could result in text being applied to the wrong buffer.
* fix(lsp): avoid ipairs on non-sequential tables (#15059)Michael Lingelbach2021-07-11
| | | | | | | | | | | | | | | | | | | | ipairs terminates on the first nil index when iterating over table keys: for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do print(i, k) end prints: 1 test Instead, use pairs which continues iterating over the entire table: for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do print(i, k) end prints: 1 test 3 test
* fix(lsp): Ensure human readable errors are printedMathias Fussenegger2021-07-11
| | | | | | | | | | `return err_message(tostring(err))` caused errors to be printed as `table: 0x123456789` instead of showing the error code and error message. This also removes some `if err` blocks that never got called because at the end of `handlers.lua` all the handlers are wrapped with logic that adds generic error handling.
* fix(lsp): Ensure users get feedback on references/symbols errors or empty ↵Mathias Fussenegger2021-07-11
| | | | | | | | | results Relates to https://github.com/neovim/neovim/issues/15050 Users should get some indication if there was an error or an empty result.
* fix(lsp): Add separator between codelens in virttext (#15049)Mathias Fußenegger2021-07-10
| | | | | | | | | | | | Before: Lens1Lens2 After: Lens1 | Lens2 Fixes https://github.com/neovim/neovim/issues/15048
* fix(lsp): correctly check for windows in lsp logger (#14954)Oliver Marriott2021-07-10
|
* feat(lsp): Make line diagnostics display prettierMathias Fussenegger2021-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | Adds indentation that matches the number prefix to ensure diagnostic messages spawning multiple lines align. Before: Diagnostics: 1. • Variable not in scope: red :: t0 -> t • Perhaps you meant one of these: ‘rem’ (imported from Prelude), ‘read’ (imported from Prelude), ‘pred’ (imported from Prelude) 2. • Variable not in scope: repeDoubleColon :: [Char] -> t0 • Perhaps you meant ‘replaceDoubleColon’ (line 32) After: Diagnostics: 1. • Variable not in scope: red :: t0 -> t • Perhaps you meant one of these: ‘rem’ (imported from Prelude), ‘read’ (imported from Prelude), ‘pred’ (imported from Prelude) 2. • Variable not in scope: repeDoubleColon :: [Char] -> t0 • Perhaps you meant ‘replaceDoubleColon’ (line 32)
* fix(lsp): support duplicate params in signature help (#15032)Folke Lemaitre2021-07-09
|
* fix(lsp): restore diagnostics extmarks that were moved to the last edit line ↵Folke Lemaitre2021-07-08
| | | | (#15023)
* feat(lsp): highlight active parameter in signature help (#15018)Folke Lemaitre2021-07-07
|
* fix(lsp): restore diagnostics extmarks on buffer changes (#15011)Folke Lemaitre2021-07-07
|
* fix(lsp): prevent double <text> for cached plaintext markupFolke Lemaitre2021-07-05
|
* Fixed +1 -1 in util.lua (#14913)jimman20032021-06-26
| | | No point in adding and then subtracting I believe ;)
* fix(lsp): render the last line in stylize_markdownFolke Lemaitre2021-06-25
|
* style(lsp): make get_markdown_fences privateFolke Lemaitre2021-06-25
|
* Merge pull request #14904 from mfussenegger/nil-message-callbacksMichael Lingelbach2021-06-25
|\ | | | | fix(lsp): Handle nil message_callbacks
| * fix(lsp): Handle nil message_callbacksMathias Fussenegger2021-06-25
| | | | | | | | | | | | | | | | | | | | The `onexit` handler could set `message_callbacks` to `nil` within the luv event loop while the mainloop runs a function that tries to access `message_callbacks`. This adds some checks to prevent errors in that case. Fixes https://github.com/neovim/neovim/issues/14863
* | Merge pull request #14617 from folke/fancy_markdown_fences_supportMichael Lingelbach2021-06-25
|\ \ | | | | | | feat(lsp): use `g:markdown_fenced_languages` in `vim.lsp.util.stylized_markdown`
| * | feat(lsp): use markdown_fenced_languages in stylized_markdownFolke Lemaitre2021-06-25
| |/
* / fix(lsp): Set `dir` completion option for add_workspace_folderMathias Fussenegger2021-06-25
|/ | | | | Given that the input is pre-filled with a path, it should be possible to use dir completion.
* fix(lsp): do not convert vim.NIL to nil in listsAkin Sowemimo2021-06-24
|
* fix(lsp): handlers should focus quickfix listMichael Lingelbach2021-06-21
|
* fix(lsp): fix severity_limit logic in set_loclistSteven Arcangeli2021-06-19
|
* chore(lsp): removed deprecated floating preview methodsFolke Lemaitre2021-06-17
|
* fix(lsp): add bufnr to formatting requestsLukas Reineke2021-06-15
| | | | | | 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.
* docs(lsp): Clarify opts for show_line_diagnostics()Shadman2021-06-15
|
* docs(lsp): annotate call_hierarchy function as privatecbarrete2021-06-14
|
* fix(lsp): fix on_detach in lsp.diagnostic Jaehwang Jerry Jung2021-06-14
| | | | | `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.
* fix(lsp): replace --- by a line in stylize_markdownFolke Lemaitre2021-06-15
|
* Merge pull request #14737 from rktjmp/lsp-guard-against-negative-linesMichael Lingelbach2021-06-14
|\ | | | | [RDY] fix(lsp): guard against negative diagnostic line numbers
| * fix(lsp): guard against negative diagnostic line numbersOliver Marriott2021-06-13
| |
* | fix(lsp): allow 'rounded' and 'solid' in floatsTimothée Sterle2021-06-14
| |
* | feat(lsp): Add codelens supportMathias Fussenegger2021-06-14
| |
* | Merge pull request #14765 from folke/lsp_plaintextMichael Lingelbach2021-06-12
|\ \ | |/ |/| fix(lsp): convert_input_to_markdown_lines: preserve plaintext
| * fix(lsp): convert_input_to_markdown_lines: preserve plaintextFolke Lemaitre2021-06-12
| |
* | fix(lsp): cap diagnostic end range to buf lengthMichael Lingelbach2021-06-10
|/ | | | Closes #14743
* feat(lsp): Split out a `diagnostics_to_items` function from set_loclistMathias Fussenegger2021-06-07
| | | | | Makes it easier to re-use the logic to populate the quickfix list instead of the location list.
* Merge pull request #14726 from folke/lsp_single_popup_per_bufferMichael Lingelbach2021-06-06
|\ | | | | fix(lsp): max 1 floating preview per buffer. Fixes #11508
| * fix(lsp): max 1 floating preview per buffer. Fixes #11508Folke Lemaitre2021-06-05
| |
* | feat(lsp): extend diagnostic.set_loclistViktor Kojouharov2021-06-06
| | | | | | | | add option to show workspace diagnostic instead of the current buffer's
* | docs(lsp): fix locations_to_items docstringMichael Lingelbach2021-06-05
| |
* | Merge pull request #14730 from mjlbach/feature/open_loclist_on_winMichael Lingelbach2021-06-05
|\ \ | | | | | | fix(lsp): set_loclist should target current win
| * | fix(lsp): set_loclist should target current winMichael Lingelbach2021-06-05
| |/ | | | | | | | | | | 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.
* | Merge pull request #14707 from ray-x/masterMichael Lingelbach2021-06-05
|\ \ | | | | | | fix(lsp): floating window border size for string type
| * | fix(lsp): floating window border size for string type 'none' and 'shadow'ray-x2021-06-02
| |/
* / feat(lsp): remove line from diagnostic quickfixMichael Lingelbach2021-06-05
|/ | | | | | Adding the line takes up valuable horizontal screen space, and also precludes using the quickfixtextfunc built into neovim due to the harcoded `|`.
* Merge pull request #14693 from ↵Michael Lingelbach2021-06-01
|\ | | | | | | | | shadmansaleh/enhance/lsp/make_focusable_parameter_configurable feat(lsp): Make focusability of lsp float configurable
| * docs(lsp): Fix opts param not captured by docgenshadmansaleh2021-06-01
| | | | | | | | | | | | In the documentation for `vim.lsp.util.open_floating_preview` the opts table keys were prefixed with `--` instead of `---`, preventing capture by docgen.