Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Commit c4573e6

Browse files
Remove ft stuff from plugin
1 parent 587c28e commit c4573e6

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
This 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.

fish.lua

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
VERSION = "0.1.0"
1+
VERSION = "0.1.1"
22

33
if GetOption("fishfmt") == nil then
44
AddOption("fishfmt", true)
55
end
66

77
MakeCommand("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-
159
function 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()
3024
end
3125

help/fish-plugin.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
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

77
You 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`

repo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
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
}

0 commit comments

Comments
 (0)