aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* log the actual global settingssettingsFlorian Fischer2025-05-161-1/+1
|
* append numbered members when mergingFlorian Fischer2025-05-162-16/+16
| | | | | Overriding numbered members is not intuitive. Merging {1} and {2} should return {1,2} not {2}.
* do not apply unspecified sections to project local settingsFlorian Fischer2025-05-161-1/+5
|
* implement more sophisticated settingsFlorian Fischer2025-05-163-16/+275
|
* add language server configuration to its object tableFlorian Fischer2025-05-161-7/+8
|
* add table helper utility functionsFlorian Fischer2025-05-162-0/+94
|
* 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
|/
* attempt a gracefully shutdown the language servers when vis quitsFlorian Fischer2024-10-251-0/+11
|
* replace the shell with the language serverFlorian Fischer2024-10-251-1/+1
|
* remove assertion that a closed file always has a pathFlorian Fischer2024-09-251-1/+1
| | | | | | | | When closing any open file we assume it has a baking path. However, especially windows we opened to present markdown messages to the user have no backing path, and thus closing them fail. Fix this assumption and use vis' "[No Name]" if no file path is set.
* Merge branch 'fix-diagnostics-documentation' into 'main'Florian Fischer2024-09-211-2/+2
|\ | | | | | | | | Fix lspc-{prev,next}-diagnostic typo in README See merge request muhq/vis-lspc!51
| * Fix lspc-{prev,next}-diagnostic typo in READMEMichiel van den Heuvel2024-09-201-2/+2
|/
* fix used quotes and remove old code in commentsFlorian Fischer2024-09-152-4/+1
|
* move helper code into the util moduleFlorian Fischer2024-09-152-145/+174
|
* use fzf as menu command in fullscreen modeFlorian Fischer2024-09-151-1/+2
|
* scroll last message to the top of the message windowFlorian Fischer2024-09-141-3/+4
|
* init: convert absolute paths to relative for referencesgit-bruh2024-09-141-1/+73
|
* lspc_select_locations: print source line contents in choicesgit-bruh2024-09-141-4/+91
|
* minor cleanups reported by luacheckFlorian Fischer2024-09-142-3/+3
|
* properly close the message window after applying a workspaceEditFlorian Fischer2024-09-141-1/+14
|
* use the new vis:pipe(txt, cmd) variant if availableFlorian Fischer2024-09-141-14/+20
|
* assert that io.popen returns a usable process handleFlorian Fischer2024-08-271-1/+1
|