This repository was archived by the owner on Mar 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed
Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 22
33This repository holds the fish plugin for micro.
44
5- Install with ` > plugin install fish ` . This plugin will let you
6- automatically run ` fish_indent ` from within micro.
5+ Install with ` > plugin install fish ` . This plugin will let you automatically run
6+ ` fish_indent ` from within micro.
Original file line number Diff line number Diff line change 1- VERSION = " 0.1.0 "
1+ VERSION = " 0.1.1 "
22
33if GetOption (" fishfmt" ) == nil then
44 AddOption (" fishfmt" , true )
55end
66
77MakeCommand (" fishfmt" , " fish.fishfmt" , 0 )
88
9- function onViewOpen (view )
10- if view .Buf :FileType () == " fish" then
11- SetLocalOption (" tabstospaces" , " on" , view )
12- end
13- end
14-
159function onSave (view )
1610 if CurView ().Buf :FileType () == " fish" then
1711 if GetOption (" fishfmt" ) then
@@ -25,7 +19,7 @@ function fishfmt()
2519 local handle = io.popen (" fish_indent -w " .. CurView ().Buf .Path )
2620 local result = handle :read (" *a" )
2721 handle :close ()
28-
22+
2923 CurView ():ReOpen ()
3024end
3125
Original file line number Diff line number Diff line change 11# Fish Plugin
22
3- The fish plugin provides some extra niceties for using micro with
4- the fish scripting language. The main thing this plugin does is
5- run ` fish_indent ` for you automatically.
3+ The fish plugin provides some extra niceties for using micro with the fish
4+ scripting language. The main thing this plugin does is run ` fish_indent ` for you
5+ automatically.
66
77You can run
88
99```
1010> fishfmt
1111```
1212
13- To automatically run it when you save the file, use the following
14- option:
13+ To automatically run it when you save the file, use the following option:
1514
1615* ` fishfmt ` : run fish_indent on file saved. Default value: ` on `
Original file line number Diff line number Diff line change 44 "Tags" : [" fish" ],
55 "Versions" : [
66 {
7- "Version" : " 0.1.0 " ,
8- "Url" : " https://github.com/onodera-punpun/micro-fish-plugin/archive/0.1.zip" ,
7+ "Version" : " 0.1.1 " ,
8+ "Url" : " https://github.com/onodera-punpun/micro-fish-plugin/archive/0.1.1. zip" ,
99 "Require" : {
1010 "micro" : " >=1.0.3"
1111 }
You can’t perform that action at this time.
0 commit comments