aboutsummaryrefslogtreecommitdiff
path: root/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix the license headers to reflect the used GPL licenseFlorian Fischer2023-06-241-1/+14
|
* 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.
* 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
* remove superfluous function parameterFlorian Fischer2023-01-141-1/+1
|
* support configuration and initializationOptions per language serverFlorian Fischer2023-01-141-11/+48
| | | | | | | | | | | 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.
* make vis-menu and vertical selection the default menu cmdFlorian Fischer2023-01-111-2/+1
|
* 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.
* make format using the luarocks version of luaformatterFlorian Fischer2023-01-041-29/+19
| | | | | | | Apparently the version from the AUR behaves differently from the version installed via luarocks. Now the 100 chars column limit is actually applied.
* move client config and capabilities into separate fileFlorian Fischer2023-01-021-70/+3
| | | | | This helps to move code out of the to big init.lua as well as allows to use the vis-lspc version in different lua files.
* use local variable instead of a global oneFlorian Fischer2023-01-021-1/+1
| | | | Fixes: 9c0a9b4fdcb2f0912b8ec3b9f7127d660565f898
* fix initialized notification parametersFlorian Fischer2023-01-021-1/+4
| | | | | | | | | | | | LSP defines the parameters of the initialized notifications as empty object. The dart language server expects that the initialize notification has an empty params object. Therefore, pass an empty parameter table to the initialized notification. Tested with our fallback json implementation as well as dkjson. Fixes !37.
* fix textDocumentSync.save ServerCapability checkFlorian Fischer2023-01-021-1/+2
| | | | | | | | | | | | The ServerCapability textDocumentSync is optional and may be of kind TextDocumentSyncOptions | TextDocumentSyncKind; If a server uses TextDocumentSyncKind which is a integer enum our .save check fails. Test if it is save to use textDocumentSync as table before checking the save capability. Fixes !35.
* bump versionv0.1.5Florian Fischer2023-01-011-1/+1
|
* fix typo in commentFlorian Fischer2023-01-011-1/+1
|
* fix passed InitializeParamsFlorian Fischer2023-01-011-3/+3
| | | | | Correct the name of two parameters and ensure that the required parameter 'rootUri' is always set to null.
* move server configurations into a seperate fileFlorian Fischer2022-08-011-13/+1
|
* support window/showMessage notificationsFlorian Fischer2022-07-291-0/+18
| | | | | | | Introduce a new configuration message_level to control the messages displayed. The option message_level ranges from 1 - 4 (Error - Log) and corresponds to LSP's MessageType namespace.
* Update init.luaJorge Gomez2022-07-091-1/+1
|
* send clientCapabilitiesFlorian Fischer2022-02-201-4/+39
| | | | | | | Be nicer to the language servers by providing our capabilities so maybe we get more deterministic results. We do not support dynamicRegistration, markdown or workDoneProgress.
* support hoverResults containing MarkedString[]Florian Fischer2022-02-201-2/+16
| | | | | | python-language-server sends a list of MarkedStrings containing the signature as python code-block and the doc string as string. https://github.com/palantir/python-language-server/issues/836
* reformat ls_map tables as a table literalMatěj Cepl2021-12-281-9/+10
|
* add Lua LSP server configurationMatěj Cepl2021-12-281-1/+5
|
* try multiple json implementationsFlorian Fischer2021-12-271-10/+18
| | | | | We try 'json', 'cjson' and 'dkjson' in that order before using our bundled fallback implementation.
* actually use python-lsp-server binaryFlorian Fischer2021-12-271-1/+1
|
* change default python language server to pylspFlorian Fischer2021-12-271-2/+3
|
* bump version to 0.1.4v0.1.4Florian Fischer2021-12-131-1/+1
|
* use capture_cmd where possibleFlorian Fischer2021-12-131-7/+1
|
* improve default loggingFlorian Fischer2021-12-131-3/+44
| | | | | | | | | | | | I use to have logging enabled to be able to debug weird vis-lspc behavior right away. But I got annoyed by vis-lspc cluttering all my directories with vis-lspc.log files. So vis-lspc will no write its log files to $XDG_DATA_HOME/vis-lspc/<iso-date>-<cwd-basename>.log if lspc.log_file is not set by the user. This patch also introduces a helper to run a program and capture its output.
* add menu-/ confirm-cmd optionsFlorian Fischer2021-12-081-0/+10
|
* fix ff92a0f1fca0f0db5b00022fc2ac41579ac5ab24Florian Fischer2021-12-061-1/+1
| | | | Don't use a global variable.
* handle string or MarkContent documentation in SignatureInformationFlorian Fischer2021-12-061-2/+2
|
* do not try to handle error responsesFlorian Fischer2021-11-221-1/+3
|
* fix crash in error reportingFlorian Fischer2021-11-211-1/+3
| | | | We crashed because a forgotten concatenation operator
* do not use lspc.log before lspc is initializedFlorian Fischer2021-08-291-60/+57
|
* bump version to 0.1.3v0.1.3Florian Fischer2021-08-161-1/+1
|
* move and fix parser codeFlorian Fischer2021-08-161-48/+16
| | | | | | | Move LSP message parser code into parser.lua. Fix parsing when message headers are split between to data junks. Simplify parser code using one string buffer and consuming already parsed message parts.
* write errors and warnings to the logFlorian Fischer2021-08-161-5/+10
|
* extract bindings into a seperate source fileFlorian Fischer2021-08-021-62/+3
|
* implement signatureHelpFlorian Fischer2021-07-191-1/+47
|
* open and close files with changes if necessaryFlorian Fischer2021-07-141-8/+20
|
* apply WorkspaceEdit changes in all open windowsFlorian Fischer2021-07-141-8/+13
|
* implement textDocument/renameFlorian Fischer2021-07-131-0/+120
| | | | | | | Currently only changes in the current window are applied. TODO: * apply changes in opened files by iteration all vis windows * apply changes in all files using sed or something
* add hover supportFlorian Fischer2021-07-121-2/+52
|
* Automatically open current file when showing diagnosticsv0.1.2Florian Fischer2021-07-091-3/+4
| | | | This is more consistent with the other lspc functions.
* Show warning instead of empty diagnostics messageFlorian Fischer2021-07-091-1/+5
|