Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Update subl3 plugin README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Mar 2, 2016
1 parent 38644e0 commit 18b2a70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion subl3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ If you want full Go experience in sublime, use [GoSublime](https://github.com/Di

This plugin is written by me (nsf) as a result of frustration with GoSublime. I wanted something simpler and plugin has to use system version of the gocode. As you may know, GoSublime uses a fork of gocode, which is integrated into its own daemon called MarGo (as far as I know).

I don't have any big plans on this plugin. The reason why I moved to sublime in the first place is, again, frustration, but with Atom (too slow). We'll see how it goes. I think I might add gofmt on save also and perhaps it's worth adding proper support for snippets, because there is no nice way to show function arguments in sublime.
The plugin does:

1. Basic gocode autocompletion. I did my best presenting the results to the user. Maybe it's possible to improve that part a bit, not quite sure yet. For functions I use "{**name**}\t{**returns**}", for everything else "{**name**}\t{**type**}". In addition to that functions are properly augmented with argument snippets.

2. Gofmt on save. Here I use difflib to calculate differences, which results in line by line changes. GoSublime uses [google-diff-match-patch](https://code.google.com/archive/p/google-diff-match-patch/) library, which calculates changes on finer granularity, maybe I should switch to that lib as well.

I don't have any big plans on this plugin. The reason why I moved to sublime in the first place is, again, frustration, but with Atom (too slow). We'll see how it goes.

Oh yes, this plugin uses GoSublime syntax files for Go. Well, they use a fork of gocode, I'll use the fork of their syntax files, fair deal.

0 comments on commit 18b2a70

Please sign in to comment.