You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2018. It is now read-only.
We aren't Clojure experts so don't expect too much fanciness here, changes are welcome.
Features
go fmt integration, via command or after each save.
Dummy eval Ctrl+Enter (check client/echo_server.go) instead of code evaluation. Needs integration with MarGo (like GoSublime).
go testgo rungo build commands which can be re-bound.
Plugin documentation (Ctrl+Space + "Go: Show plugin documentation")
Package sensitive autocompletion, via gocode. Gocode must be installed on your system & available on your path for this to work.
Installation
The version of this plugin in the plugin manager for Light Table may be out of date. If you want the latest version, clone this repository into your Light Table plugins folder with the name "LightTable-Go".
Configuration
To configure this plugin, just attach the appropriate behaviors to :editor.go in your user.behaviors file. Example:
The example given above shows the default values for the available commands.
Additional behaviors for :editor.go:
(:lt.objs.editor/tab-settings use-tab tab-size spaces-per-indent) -- Part of Light Table. In case you don't like Go's default style.
:lt.plugins.go/fmt-on-save -- Runs gofmt whenever you save & replaces the editor contents with the formatted code.
Autocomplete
For autocomplete to work, Gocode must be installed on your system & available on your path.
Inline docs
Basic inline documentation (default: ctrl-d) is available for package level functions. Does not currently work for struct methods or packages with a /
in their name (net/http, for example), or show arguments for the functions. It's all on the to-do list.