aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* store diagnostics received for files not in the current windowFlorian Fischer2023-10-121-2/+4
|
* improve language in the READMEFlorian Fischer2023-10-071-34/+34
| | | | | | | * fix typos * wrap file or project names in code blocks * drop the hint taht vis-lspc is in an early state * s/json/JSON/
* implement cycling between available diagnosticsFlorian Fischer2023-10-072-0/+72
| | | | | | This is implemented by the two new commands: * lspc-next-diagnostics - jump to the next available diagnostic * lspc-prev-diagnostics - jump to the previous available diagnostic
* fix diagnostics line highlightingFlorian Fischer2023-10-061-4/+3
| | | | | | | | Range highlighting used the vis_range and line highlighting the LSP range. Do not touch old code you no longer understand because you think you are apparently smarter than your past self! Fixes: efd5262f2c45d3289e482b1091d3c1d44cf67a42
* Merge branch 'vis-next' into 'main'Florian Fischer2023-10-062-6/+7
|\ | | | | | | | | | | | | use new vis 0.9 features Closes #43 See merge request muhq/vis-lspc!42
| * remove default formatting options for luaFlorian Fischer2023-10-061-1/+0
| | | | | | | | | | | | Default formatting options should not be configured by the LSPC client, the user should either configure them explicitly or use something like editorconfig or mode lines.
| * use vis default formatting optionsFlorian Fischer2023-10-061-2/+4
| | | | | | | | Since vis 0.9 the options are exposed via the vis.options table.
| * adapt communicate API released with vis 0.9Florian Fischer2023-10-061-3/+3
|/
* mention the legacy support branchFlorian Fischer2023-10-061-1/+3
|
* support highlighting the line number of available diagnosticsv0.2.0Florian Fischer2023-10-062-7/+33
|
* Merge branch 'naive_documentChanges_support' into 'main'Florian Fischer2023-08-291-1/+12
|\ | | | | | | | | | | | | try to convert workspaceEdit.documentChanges to plain changes Closes #34 See merge request muhq/vis-lspc!44
| * try to convert workspaceEdit.documentChanges to plain changesFlorian Fischer2023-08-291-1/+12
|/ | | | | | | We do not support workspaceEdit.documentChanges but some LSP servers do not respect our capabilities and send them anyways. Try to optimistically convert simple documentChanges to plain changes. We only support simple TextDocumentEdit[].
* do not index a nil value when no formatting edits are returnedFlorian Fischer2023-08-291-1/+4
| | | | | | | | | | | The method textDocument/formatting is allowed to return null/nil which was directly passed to vis_apply_textEdits causing an exception when trying to iterate the textEdits table. Only pass the result of textDocument/formatting to vis_apply_textEdits if there is an actual result. Fixes: e83950a7149f364b653395cdd4d9446875a7f469
* fix hover result determinationFlorian Fischer2023-08-291-1/+1
| | | | | If the result is MarkedString[] the table must have a length > 0, because all returned object types are represented as lua tables.
* Add function to open a file to lspc objectMichiel van den Heuvel2023-08-282-1/+26
|
* Remove duplicate command_register callMichiel van den Heuvel2023-08-281-10/+0
|
* Fix filename escaping when opening a fileMichiel van den Heuvel2023-08-281-2/+6
|
* Merge branch 'check-modified' into 'main'v0.1.9Florian Fischer2023-07-221-79/+87
|\ | | | | | | | | Check modified See merge request muhq/vis-lspc!41
| * Offer to save current file before opening new oneMichiel van den Heuvel2023-07-201-0/+8
| |
| * Move confirmation and selection functions upMichiel van den Heuvel2023-06-301-79/+79
| |
* | Merge branch 'main' into 'main'Florian Fischer2023-06-293-1/+64
|\| | | | | | | | | Add textDocument/formatting implementation See merge request muhq/vis-lspc!40
| * Make formatting options sort of configurableMichiel van den Heuvel2023-06-293-1/+9
| | | | | | | | | | | | | | | | This should be wired up to code that's in a pull request in the vis repository for the default options. This PR does not yet expose `expandtab`. Referenced PR: https://github.com/martanne/vis/pull/717
| * Add textDocument/formatting implementationMichiel van den Heuvel2023-06-292-0/+55
| | | | | | | | | | | | | | This is tested with the Rust language server and the Lua one. Moving the cursor to the correct position afterwards works with Rust, but not with Lua. Being smarter about the ranges is probably necessary for Lua and might make other ones more robust.
| * Fix typoMichiel van den Heuvel2023-06-251-1/+1
|/
* fix format of license file headersFlorian Fischer2023-06-255-27/+25
|
* fix the license headers to reflect the used GPL licenseFlorian Fischer2023-06-245-5/+77
|
* Avoid screen flicker when navigating within fileMichiel van den Heuvel2023-06-121-3/+7
| | | | | When using vis_open_doc_pos, don't reopen the file if the path of the opened file and the doc_pos match.
* fix log file creation for paths including spacesFlorian Fischer2023-06-111-1/+1
|
* jump to document position in the original windowFlorian Fischer2023-04-151-8/+11
| | | | | | | | | | Currently if a method call result causing the editor to jump to a new location is received from the language server we change the current window ('vis.win'). However this behavior is strange if the user has already switch window the message window was opened. Remember the window where the jump was requested and execute it in the original window.
* bump version to 0.1.8v0.1.8Florian Fischer2023-01-181-1/+1
|
* distinguish between method call and method responseFlorian Fischer2023-01-181-1/+1
| | | | | | | | | | | | | We can not only use the fact that we have a method call inflight with the observed id. Because the language server may has called a method on use with the same id. Therefore we have to also check if the incoming message contains a method field. method + id -> method call id -> method response method -> notification
* bump version to 0.1.7v0.1.7Florian Fischer2023-01-141-1/+1
|
* remove superfluous function parameterFlorian Fischer2023-01-141-1/+1
|
* fix typoFlorian Fischer2023-01-141-1/+1
|
* link to the shipped language server configurationsFlorian Fischer2023-01-141-1/+2
|
* support configuration and initializationOptions per language serverFlorian Fischer2023-01-144-21/+76
| | | | | | | | | | | Send language server settings after initialization via a workspace/didChangeConfiguration notification. Implement a workspace/configuration handler using the values stored in the language server settings. Send the init_options as initializationOptions in the initialize parameters.
* Merge branch 'supported-servers' into 'main'Florian Fischer2023-01-111-0/+7
|\ | | | | | | | | haskell and ocaml language servers See merge request muhq/vis-lspc!38
| * add ocaml-language-serverErlend Lind Madsen2023-01-081-0/+4
| |
| * add haskell-language-serverErlend Lind Madsen2023-01-081-0/+3
| |
* | make vis-menu and vertical selection the default menu cmdFlorian Fischer2023-01-112-3/+2
| |
* | add context parameter to textDocument/references callFlorian Fischer2023-01-091-2/+8
|/ | | | Fixes !41.
* Merge branch 'fix-vis-menu-cursors'Florian Fischer2023-01-051-3/+11
|\
| * allow cursor keys when using vis-menuFlorian Fischer2023-01-041-3/+11
| | | | | | | | | | | | vis uses vis:pipe to call vis-menu when completing filenames. Simply copy what vis does. However, using vis:pipe does not work with fzf. I do not understand why but the vis-menu special case seams to work.
* | fix completions using textEditFlorian Fischer2023-01-041-10/+1
|/ | | | | Fix the off-by-one manual range conversion by using the already available helper function.
* bump versionv0.1.6Florian Fischer2023-01-041-1/+1
|
* make format using the luarocks version of luaformatterFlorian Fischer2023-01-042-31/+20
| | | | | | | Apparently the version from the AUR behaves differently from the version installed via luarocks. Now the 100 chars column limit is actually applied.
* CI: bump docker imageFlorian Fischer2023-01-041-1/+1
|
* fix check and test make targets and run make formatFlorian Fischer2023-01-042-3/+6
| | | | | The make targets use a shell loop which does not fail if one of the iterations fail.
* use lspc version when starting dart language-serverFlorian Fischer2023-01-041-1/+10
|
* Merge branch 'supported-servers' into 'main'Florian Fischer2023-01-041-0/+8
|\ | | | | | | | | Supported servers (typescript/dart) See merge request muhq/vis-lspc!37