aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
Commit message (Collapse)AuthorAge
* 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 `|`.
* fix(lsp): check mode in omnifunc callbackJose Alvarez2021-06-01
|
* 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.
| * feat(lsp): Make focusability of lsp float configurableshadmansaleh2021-06-01
| | | | | | | | | | | | | | | | | | | | | | 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}) ```
* | Merge pull request #14694 from folke/lsp_popup_borderMichael Lingelbach2021-06-01
|\ \ | |/ |/|
| * fix(lsp): properly handle border character list without highlight groups. ↵Folke Lemaitre2021-06-01
| | | | | | | | Fixes #14691
* | Merge pull request #14635 from folke/lsp_get_linesMichael Lingelbach2021-05-31
|\ \ | |/ |/| perf(lsp): get all lines from a file in one go (`locations_to_items`)
| * perf(lsp): get all lines from a file in one goFolke Lemaitre2021-05-25
| |
* | Merge pull request #14649 from folke/lsp_float_refactorMichael Lingelbach2021-05-29
|\ \ | | | | | | refactor(lsp): consolidate the different floating window methods into `open_floating_preview`
| * | refactor(lsp): consolidate the different floating window methods into ↵Folke Lemaitre2021-05-29
| | | | | | | | | | | | open_floating_preview
* | | lua: Add vim.opt and fix scopes of vim.o (#13479)TJ DeVries2021-05-28
|/ / | | | | | | | | | | | | | | | | | | | | | | | | * lua: Add vim.opt * fixup: cleaning * fixup: comments * ty clason * fixup: comments * this is the last commit. period.
* / lsp: Ensure floating markdown buffers are deleted on hideMathias Fussenegger2021-05-26
|/ | | | | After the change to use fancy_floating_markdown for the signature help I noticed that scratch buffers start to accumulate.
* lsp: Only mute RequestCancelled or ContentModified, but not other errorsMathias Fussenegger2021-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 )
* Merge pull request #14615 from folke/faster_locations_to_itemsMichael Lingelbach2021-05-22
|\ | | | | perf(lsp): `locations_to_items`: use libuv for unloaded buffers to get line
| * perf(lsp): locations_to_items use libuv for unloaded buffers to get lineFolke Lemaitre2021-05-22
| |
* | Merge pull request #14269 from fdschmidt93/fix/document_symbol_rangeMichael Lingelbach2021-05-22
|\ \ | | | | | | fix(lsp): prefer selectionRange over range for document symbols in vim.lsp.util.symbols_to_items
| * | fix: selectionrange over range for document symbolsFabian David Schmidt2021-04-01
| | |
* | | Merge pull request #14603 from folke/format_on_saveMichael Lingelbach2021-05-22
|\ \ \ | |_|/ |/| | fix(lsp): allow apply_text_edits to append text (insert at last line)
| * | fix(lsp): allow apply_text_edits and set_lines to insert text after the last ↵Folke Lemaitre2021-05-21
| | | | | | | | | | | | line. Fixes #14017
* | | feat(lsp): use fancy_floating_markdown for signature_helpFolke Lemaitre2021-05-21
| | |
* | | fix(lsp): clear current_syntax before formatting fancy markdown regionFolke Lemaitre2021-05-21
| | |
* | | fix(lsp): preview_location options and syntax fallbackFolke Lemaitre2021-05-21
| | |
* | | feat(lsp): lsp.util.fancy_floating_markdown improvementsFolke Lemaitre2021-05-21
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #14563 from mjlbach/fix_intelephense_langserverMichael Lingelbach2021-05-19
|\ \ | | | | | | lsp: handle case where CompletionItem.insertTextFormat is nil
| * | lsp: handle case where CompletionItem.insertTextFormat is nilMichael Lingelbach2021-05-16
| | | | | | | | | | | | * Update tests to use explicit insertTextFormat for snippets
* | | Merge pull request #14589 from mhinz/revert-smarter-tagstackMarco Hinz2021-05-19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, there are some subtle bugs in the smarter tagstack changes, so we'll revert them for now and try to come up with a better approach. One of the added tests, adds current position to jumplist before jumping, is valuable though and changed to still work after reverting the other two commits. Closes #14571
| * | | Revert "lsp: make tagstack smarter motion-wise (#12262)"Marco Hinz2021-05-19
| | | | | | | | | | | | | | | | This reverts commit 8885ea7f244ee49b0018dc57be84917ea7886c2d.
| * | | Revert "lsp: fix regression in jump_to_location() (#14446)"Marco Hinz2021-05-19
| | | | | | | | | | | | | | | | This reverts commit 993ca90c9b53033216d4973e2f995b995ed5740e.
* | | | lsp: handle unsupported call hierarchy callCédric Barreteau2021-05-19
|/ / /
* | | Merge pull request #14555 from mickael-menu/fix/range-code-actionMichael Lingelbach2021-05-14
|\ \ \ | | | | | | | | lsp: Fix range end offset off by one character
| * | | lsp: Fix range end offset off by one characterMickaël Menu2021-05-14
| | | |
* | | | treesitter: add predicate "any-of?" (#14344)Raymond W. Ko2021-05-14
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the case of Clojure and other Lisp syntax highlighting, it is necessary to create huge regexps consisting of hundreds of symbols with the pipe (|) character. To make things more difficult, these Lisp symbols sometimes consists of special characters that are themselves part of special regexp characters like '*'. In addition to being difficult to maintain, it's performance is suboptimal. This patch introduces a new predicate to perform 'source' matching in amortized constant time. This is accomplished by compiling a hash table on the first use.
* / / treesitter: do not escape in match? (#14382)Stephan Seitz2021-05-11
|/ /
* | Merge pull request #14418 from DerekStride/treesitter-set-directiveThomas Vigouroux2021-05-03
|\ \ | | | | | | [RDY] tree-sitter ensure there is a nested table allocated for `#set!`
| * | Ensure there is a nested table allocated for #set!derekstride2021-04-27
| | | | | | | | | | | | | | | | | | | | | | | | Fixes the following bug: ``` test/functional/helpers.lua:107: Error executing lua: vim/treesitter/query.lua:256: attempt to index a nil value ```
* | | 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
| * | | | Increase default LSP sync timeout to 1000msKarim Abou Zeid2021-05-02
| | | | |
| * | | | Add client.request_sync docKarim Abou Zeid2021-05-02
| | | | |
| * | | | Synchronous formatting methods notify the user on timeout and interruptedKarim Abou Zeid2021-05-02
| | | | |