Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | fix(lsp): avoid ipairs on non-sequential tables (#15059) | Michael Lingelbach | 2021-09-26 |
| | | | | | | | | | | | | | | | | | | | | 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 | ||
* | feat(lsp): improve vim.lsp.util.apply_text_edits (#15561) | hrsh7th | 2021-09-26 |
| | | | | | | - Fix the cursor position after applying TextEdits - Support reversed range of TextEdit - Invoke nvim_buf_set_text one by one | ||
* | feat(lsp): improve logging (#15636) | Michael Lingelbach | 2021-09-26 |
| | | | | | | | | * Simplify rpc encode/decode messages to rpc.send/rcp.receive * Make missing handlers message throw a warning * Clean up formatting style in log * Move all non-RPC loop messages to trace instead of debug * Add format func option to log to allow newlines in per log entry | ||
* | fix(lsp): update lsp-handler signature in call_hierarchy (#15738) | Mathias Fußenegger | 2021-09-26 |
| | | | | | | | | This fixes the handler signature and also prevents n+1 requests firing if there are multiple clients. (The first `prepareCallHierarchy` handler is called once per client, each invocation used `buf_request` to make more requests using *all* clients) | ||
* | fix(lsp): adapt codelens resolve to handler signature change (#15578) | Mathias Fußenegger | 2021-09-26 |
| | | | Follow up to https://github.com/neovim/neovim/pull/15504 | ||
* | fix(lsp): update workspace/applyEdit handler signature (#15573) | Jose Alvarez | 2021-09-26 |
| | |||
* | feat(lsp)!: change handler signature #15504 | Michael Lingelbach | 2021-09-26 |
| | |||
* | backport: fix(lsp): Ensure human readable errors are printed | Mathias Fussenegger | 2021-09-16 |
| | | | | | | | | | | `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. | ||
* | backport: fix(lsp): Ensure users get feedback on references/symbols errors ↵ | Mathias Fussenegger | 2021-09-16 |
| | | | | | | | | | or empty results Relates to https://github.com/neovim/neovim/issues/15050 Users should get some indication if there was an error or an empty result. | ||
* | backport: fix(lsp): correctly check for windows in lsp logger (#14954) | Oliver Marriott | 2021-09-16 |
| | |||
* | backport: fix(lsp): restore diagnostics extmarks that were moved to the last ↵ | Folke Lemaitre | 2021-09-16 |
| | | | | edit line (#15023) | ||
* | fix(lsp): correctly parse LSP snippets #15579 | hrsh7th | 2021-09-14 |
| | | | | Fixes #15522 | ||
* | backport: fix(lsp): restore diagnostics extmarks on buffer changes (#15011) | Folke Lemaitre | 2021-09-14 |
| | |||
* | backport: fix(lsp): prevent double <text> for cached plaintext markup | Folke Lemaitre | 2021-09-14 |
| | |||
* | Fixed +1 -1 in util.lua (#14913) | jimman2003 | 2021-06-26 |
| | | | No point in adding and then subtracting I believe ;) | ||
* | fix(lsp): render the last line in stylize_markdown | Folke Lemaitre | 2021-06-25 |
| | |||
* | style(lsp): make get_markdown_fences private | Folke Lemaitre | 2021-06-25 |
| | |||
* | Merge pull request #14904 from mfussenegger/nil-message-callbacks | Michael Lingelbach | 2021-06-25 |
|\ | | | | | fix(lsp): Handle nil message_callbacks | ||
| * | fix(lsp): Handle nil message_callbacks | Mathias Fussenegger | 2021-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_support | Michael Lingelbach | 2021-06-25 |
|\ \ | | | | | | | feat(lsp): use `g:markdown_fenced_languages` in `vim.lsp.util.stylized_markdown` | ||
| * | | feat(lsp): use markdown_fenced_languages in stylized_markdown | Folke Lemaitre | 2021-06-25 |
| |/ | |||
* / | fix(lsp): Set `dir` completion option for add_workspace_folder | Mathias Fussenegger | 2021-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 lists | Akin Sowemimo | 2021-06-24 |
| | |||
* | fix(lsp): handlers should focus quickfix list | Michael Lingelbach | 2021-06-21 |
| | |||
* | fix(lsp): fix severity_limit logic in set_loclist | Steven Arcangeli | 2021-06-19 |
| | |||
* | chore(lsp): removed deprecated floating preview methods | Folke Lemaitre | 2021-06-17 |
| | |||
* | fix(lsp): add bufnr to formatting requests | Lukas Reineke | 2021-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() | Shadman | 2021-06-15 |
| | |||
* | docs(lsp): annotate call_hierarchy function as private | cbarrete | 2021-06-14 |
| | |||
* | fix(lsp): fix on_detach in lsp.diagnostic | Jaehwang Jerry Jung | 2021-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_markdown | Folke Lemaitre | 2021-06-15 |
| | |||
* | Merge pull request #14737 from rktjmp/lsp-guard-against-negative-lines | Michael Lingelbach | 2021-06-14 |
|\ | | | | | [RDY] fix(lsp): guard against negative diagnostic line numbers | ||
| * | fix(lsp): guard against negative diagnostic line numbers | Oliver Marriott | 2021-06-13 |
| | | |||
* | | fix(lsp): allow 'rounded' and 'solid' in floats | Timothée Sterle | 2021-06-14 |
| | | |||
* | | feat(lsp): Add codelens support | Mathias Fussenegger | 2021-06-14 |
| | | |||
* | | Merge pull request #14765 from folke/lsp_plaintext | Michael Lingelbach | 2021-06-12 |
|\ \ | |/ |/| | fix(lsp): convert_input_to_markdown_lines: preserve plaintext | ||
| * | fix(lsp): convert_input_to_markdown_lines: preserve plaintext | Folke Lemaitre | 2021-06-12 |
| | | |||
* | | fix(lsp): cap diagnostic end range to buf length | Michael Lingelbach | 2021-06-10 |
|/ | | | | Closes #14743 | ||
* | feat(lsp): Split out a `diagnostics_to_items` function from set_loclist | Mathias Fussenegger | 2021-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_buffer | Michael Lingelbach | 2021-06-06 |
|\ | | | | | fix(lsp): max 1 floating preview per buffer. Fixes #11508 | ||
| * | fix(lsp): max 1 floating preview per buffer. Fixes #11508 | Folke Lemaitre | 2021-06-05 |
| | | |||
* | | feat(lsp): extend diagnostic.set_loclist | Viktor Kojouharov | 2021-06-06 |
| | | | | | | | | add option to show workspace diagnostic instead of the current buffer's | ||
* | | docs(lsp): fix locations_to_items docstring | Michael Lingelbach | 2021-06-05 |
| | | |||
* | | Merge pull request #14730 from mjlbach/feature/open_loclist_on_win | Michael Lingelbach | 2021-06-05 |
|\ \ | | | | | | | fix(lsp): set_loclist should target current win | ||
| * | | fix(lsp): set_loclist should target current win | Michael Lingelbach | 2021-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/master | Michael Lingelbach | 2021-06-05 |
|\ \ | | | | | | | fix(lsp): floating window border size for string type | ||
| * | | fix(lsp): floating window border size for string type 'none' and 'shadow' | ray-x | 2021-06-02 |
| |/ | |||
* / | feat(lsp): remove line from diagnostic quickfix | Michael Lingelbach | 2021-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 Lingelbach | 2021-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 docgen | shadmansaleh | 2021-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. |