aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* do not apply unspecified sections to project local settingsFlorian Fischer2025-11-301-1/+5
|
* implement more sophisticated settingsFlorian Fischer2025-11-303-19/+275
|
* add language server configuration to its object tableFlorian Fischer2025-11-301-7/+8
|
* add table helper utility functionsFlorian Fischer2025-11-302-0/+94
|
* add missing punctuationFlorian Fischer2025-11-301-2/+2
|
* remove usable LS check from highlight_diagnosticsFlorian Fischer2025-11-121-5/+0
| | | | | | Highlighting diagnostics does not need a LS. However, there should only be diagnostics if a LS is available. But, this is already checked when looking at the open file.
* only try to de-flatten a configuration section if it is presentFlorian Fischer2025-11-121-6/+9
| | | | | | Harper send requests like this {"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{}]},"id":0} containing a single empty item.
* Merge branch 'diagnostic-nav-bindings' into 'main'Florian Fischer2025-11-122-0/+10
|\ | | | | | | | | Add default bindings for diagnostics navigation See merge request muhq/vis-lspc!66
| * Add default bindings for diagnostics navigationRubén Santos2025-11-122-0/+10
|/
* parse LSP messages containing a Content-Type headerFlorian Fischer2025-09-062-2/+19
|
* fix(empty file): fixes ls trying to open an empty fileJason Fuchs2025-09-021-1/+1
|
* Merge branch 'fix_last_char_range' into 'main'Florian Fischer2025-07-274-16/+33
|\ | | | | | | | | | | | | fix conversion of last newline selections Closes #52 See merge request muhq/vis-lspc!63
| * add autoconfirm_edits configuration optionFlorian Fischer2025-07-123-16/+21
| | | | | | | | | | Some language servers replace the whole file content on an edit, thus producing potentially really big diffs not suitable for review and user confirmation. So some users may just accept the changes proposed from the language server.
| * add special case for the gopls empty file rangeFlorian Fischer2025-07-021-3/+7
| |
| * fix conversion of last byte selectionsFlorian Fischer2025-07-021-0/+8
|/ | | | | | | | If a language server sends a selection including the last byte, the line number will be one greater than the actual number of lines. Those selections are not converted by our algorithm iterating all lines. Add a special case to still convert them. Fixes: f5c2043
* Merge branch 'fix-select-location-format' into 'main'Florian Fischer2025-07-021-2/+2
|\ | | | | | | | | Fix non-integers for position in select location See merge request muhq/vis-lspc!62
| * Fix non-integers for position in select locationMichiel van den Heuvel2025-07-021-2/+2
| |
* | Merge branch 'pull-diagnostics' into 'main'Florian Fischer2025-07-022-1/+44
|\ \ | |/ |/| | | | | Add pull diagnostics See merge request muhq/vis-lspc!61
| * Add pull diagnosticsMichiel van den Heuvel2025-07-022-1/+44
|/
* declare test target as phonyFlorian Fischer2025-06-081-1/+1
|
* fix the line number detection with tabsFlorian Fischer2025-06-083-3/+48
| | | | | If a line includes tabs add the visually added space for each tab stop to the line length in order to detect a wrapped line.
* Merge branch 'merge-event-subscriptions' into 'main'Florian Fischer2025-05-161-15/+18
|\ | | | | | | | | Coalesce some event subscriptions See merge request muhq/vis-lspc!60
| * Coalesce some event subscriptionsMichiel van den Heuvel2025-05-151-15/+18
|/
* Merge branch 'sel_to_pos_v2' into 'main'Florian Fischer2025-05-152-42/+97
|\ | | | | | | | | | | | | Change vis_sel_to_pos to vis internals or to count lines itself Closes #38 See merge request muhq/vis-lspc!58
| * improve the documentation of some lsp_type comparison helpersFlorian Fischer2025-02-141-2/+9
| |
| * calculate the positions for multiple selections at onceFlorian Fischer2025-02-142-12/+43
| |
| * move file location converters functions into util moduleFlorian Fischer2025-02-142-31/+50
| | | | | | | | Use the the internal vis logic as fast path if available.
| * Change vis_sel_to_pos to count lines itselfMichiel van den Heuvel2025-02-041-20/+18
| | | | | | | | | | | | | | | | | | | | This avoids the screen scrolling when receiving diagnostics from the server, which currently means that saving the file randomly centers the cursor. This is a first version, I think that an optimisation is possible where it doesn't loop through the file for every selection, but loops once, converting every selection passed.
* | Check lsp return value is table in handlersMichiel van den Heuvel2025-05-141-4/+4
| | | | | | | | | | At least in lua-cjson, null is sometimes returned as a (light) userdata value. This resulted in ugly errors.
* | fix vis:pipe buffer support detectionFlorian Fischer2025-04-101-1/+1
|/ | | | | | Check a vis:pipe function call like we would call it in vis_pipe. Omitting the fullscreen parameter causes the pcall to succeed, although vis does not support using a string as data source.
* Merge branch 'add-tools-editorconfig' into 'main'Florian Fischer2025-02-021-0/+5
|\ | | | | | | | | Add editorconfig section for tools/ See merge request muhq/vis-lspc!56
| * Add editorconfig section for tools/Michiel van den Heuvel2025-02-021-0/+5
| |
* | Merge branch 'fix-find-root-uri' into 'main'Florian Fischer2025-02-022-3/+4
|\ \ | |/ |/| | | | | Fix some issues with find_root_uri See merge request muhq/vis-lspc!55
| * Fix find_upwardsMichiel van den Heuvel2025-02-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | - Use `util.vis_pipe` instead of `vis:pipe` as this does not work on the current release of vis. - Quote the path to the find-upwards script. It resides in `~/Library/Application Support` on my macOS setup, and while not very common, paths in other users' configurations might have the same issue. - At least during testing, `out` was nil in some cases. `find_upwards` checks it now.
| * Fix undefined conf field in lsMichiel van den Heuvel2025-02-021-1/+1
|/ | | | | This is something that should only be in the settings branch, watch out when merging these two.
* handle special cases in util.dirnamedetect-rootFlorian Fischer2025-01-112-1/+39
|
* make universal root detection opt-inFlorian Fischer2025-01-115-6/+42
|
* extract the upwards find code into the util moduleFlorian Fischer2025-01-093-14/+30
|
* refactor the language server codeFlorian Fischer2025-01-091-83/+105
| | | | Introduce a LanguageServer meta-table and write more documentation.
* supported-servers: update rootsgit-bruh2025-01-091-5/+35
|
* *: pass rootUrigit-bruh2025-01-092-1/+49
|
* add clangd config for new C syntax nameFlorian Fischer2025-01-041-0/+1
| | | | | vis 6d362f260c1573d5fb1b60be4ea84689600d368e changed the syntax name for C from ansi_c to c.
* lazily initialize the default loggerFlorian Fischer2024-12-302-1/+30
| | | | | | | | | | | In order for the user to configure the logging behavior the values of lspc.logging and lspc.log_file must be evaluated after vis-lspc was required. To lazily evaluate the logging configuration a new LazyInitLogger metatable is introduced, which initializes the actual logger on first use. Fixes: 1bd1416c89f92f637ca5e22c94b3479f8d32f2d7
* Merge branch 'vscode-langservers-extracted' into 'main'Florian Fischer2024-12-171-0/+21
|\ | | | | | | | | Add language servers from VSCode langservers extracted See merge request muhq/vis-lspc!53
| * supported-servers.lua: fix formattingAaron John2024-12-141-4/+13
| |
| * supported-servers.lua: add json-language-serverAaron John2024-12-111-0/+4
| |
| * supported-servers.lua: add css-language-serverAaron John2024-12-111-0/+4
| |
| * supported-servers.lua: add html-language-serverAaron John2024-12-111-0/+4
|/
* Merge branch 'bash-lsp' into 'main'Florian Fischer2024-11-011-0/+4
|\ | | | | | | | | supported-servers.lua: add bash-language-server See merge request muhq/vis-lspc!52
| * supported-servers.lua: add bash-language-serverAaron John2024-10-311-0/+4
|/