Commit Graph

26 Commits

Author SHA1 Message Date
Cody Allen
b645ad4dde
Remove hacky vim auto-completion
Before Unison had LSP support for auto-completion, I added some hacky
auto-completion support to the vim plugin that called the codebase
server via curl and parsed the results with jq. The quality of the LSP
support now far exceeds this hacky completion, and I believe that the
hacky completion was accidentally disabled a while back anyway; so this
removes it.

Resolves #3847
2023-04-24 09:02:02 -04:00
Rúnar
e56a6b2f53 Fix a couple of bugs 2023-01-10 00:46:56 -05:00
Rúnar
ff5c4ae8b6 Matching should be case-sensitive 2023-01-10 00:01:26 -05:00
Rúnar
cf5c59ceb6 Improve syntax highlighting 2023-01-09 23:38:04 -05:00
pragdave
8c2d32edc8 Update vim support. Comments are now correct, and syntax is closer to current Unison 2023-01-06 11:11:47 -06:00
Cody Allen
4097291cfa
vim-completion: don't include bang
Similar to #2842.

When triggering auto-completion on something like `!currentTime`, we
don't want to include the `!` in the term that we search for.
2022-02-18 08:21:35 -08:00
Cody Allen
2404c41288
vim completion: handle leading {
Before this change if you had `{Abor<cursor>` and triggered completion,
nothing would be found because the `{` was included in the search
string. This change special-cases a few characters (braces, parentheses)
so that they don't accidentally get included in the search term.

I think that a fix that is 100% compatible with the Unison spec would be
more involved. But this seems to handle the vast majority of uses. Also
I don't think that the Unison parser even is 100% compatible with the
Unison spec 🙂.
2022-01-27 15:17:13 -08:00
Cody Allen
e0b494f7e4
Quick start docs for vim support
While helping Rúnar get started with vim completion I realized that the
docs could use some improvement.
2021-11-03 13:58:21 -07:00
Cody Allen
fc5ed9bc6c
Add vim completion support.
See demo [here](https://asciinema.org/a/Oa50pRFO8JpIQFvg7ZzWg3cel).
2021-11-01 14:45:31 -07:00
Hakim Cassimally
238e22d8ba Correct semantics of "fold" comment
Unison uses a comment like this to signal the fold after an `edit`

    ---- Anything below this line is ignored by Unison.

The previous definition of `uBelowFold` was a line starting with
"---- ". But in fact a fold is triggered by 3 or more dashes at the
start of a line, and doesn't require a space.
2020-09-20 16:45:17 +01:00
Hakim Cassimally
9d99f7f96b Highlight below the fold as a comment
Add a `uBelowFold` syntax region, highlighted as a comment.
2020-09-19 11:33:37 +01:00
Runar Bjarnason
c6497fb2eb Add doc blocks to vim syntax 2020-03-06 15:06:33 -05:00
Aaron Novstrup
894f2fb5ce parse (cases) lambda-case syntax 2020-02-14 08:42:41 -08:00
Aaron Novstrup
93b0d2a353 replace case .. of syntax with match .. with 2020-02-07 18:59:37 -08:00
Aaron Novstrup
294c51619f add syntax highlighting for with (atom/vim grammars) 2020-01-21 15:57:17 -08:00
Runar Bjarnason
a8f04e2ae0 Added unique keyword to vim syntax 2019-08-03 23:52:50 -04:00
Arya Irani
6e98189fea remove block comment, add eof --- comment 2019-04-09 15:31:15 -04:00
Ben Fradet
43c146962f Escape annotation highlighting when enclosed with quotation marks 2019-04-07 14:29:11 +02:00
Ben Fradet
9d7ff77619 Replace effect by ability in the editor-support projects 2019-03-25 17:53:04 +01:00
Paul Chiusano
f09da9d84d rename Int64 to just Int 2018-09-24 13:36:13 -04:00
Paul Chiusano
66962863b5 rename UInt64 to Nat 2018-09-24 13:15:40 -04:00
Arya Irani
913b8adebb add "where" keyword to atom Unison plugin 2018-09-04 10:06:37 -04:00
Rúnar Óli Bjarnason
55eb29ad18 Added editor support for vim 2018-08-23 10:43:52 -04:00
Arya Irani
5f8e093917 a couple more error examples 2018-08-08 23:20:38 -04:00
Arya Irani
3709043f59 support toggling comments 2018-06-16 16:31:56 -04:00
Arya Irani
6a221273b8 first cut at atom editor support for unison files 2018-06-16 16:17:10 -04:00