| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Harper send requests like this
{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{}]},"id":0}
containing a single empty item.
|
| |\
| |
| |
| |
| | |
Add default bindings for diagnostics navigation
See merge request muhq/vis-lspc!66
|
| |/ |
|
| | |
|
| | |
|
| |\
| |
| |
| |
| |
| |
| | |
fix conversion of last newline selections
Closes #52
See merge request muhq/vis-lspc!63
|
| | |
| |
| |
| |
| | |
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.
|
| | | |
|
| |/
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| | |
Fix non-integers for position in select location
See merge request muhq/vis-lspc!62
|
| | | |
|
| |\ \
| |/
|/|
| |
| | |
Add pull diagnostics
See merge request muhq/vis-lspc!61
|
| |/ |
|
| | |
|
| |
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
Coalesce some event subscriptions
See merge request muhq/vis-lspc!60
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Change vis_sel_to_pos to vis internals or to count lines itself
Closes #38
See merge request muhq/vis-lspc!58
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Use the the internal vis logic as fast path if available.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
At least in lua-cjson, null is sometimes returned as a (light) userdata
value. This resulted in ugly errors.
|
| |/
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
Add editorconfig section for tools/
See merge request muhq/vis-lspc!56
|
| | | |
|
| |\ \
| |/
|/|
| |
| | |
Fix some issues with find_root_uri
See merge request muhq/vis-lspc!55
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| |/
|
|
|
| |
This is something that should only be in the settings branch, watch out
when merging these two.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Introduce a LanguageServer meta-table and write more documentation.
|
| | |
|
| | |
|
| |
|
|
|
| |
vis 6d362f260c1573d5fb1b60be4ea84689600d368e changed the
syntax name for C from ansi_c to c.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| | |
Add language servers from VSCode langservers extracted
See merge request muhq/vis-lspc!53
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| |
| |
| | |
supported-servers.lua: add bash-language-server
See merge request muhq/vis-lspc!52
|
| |/ |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
Fix lspc-{prev,next}-diagnostic typo in README
See merge request muhq/vis-lspc!51
|