Skip to content

Commit 80aaded

Browse files
author
usfbih8u
committed
chore(runtime/plugins): all built-in plugins use the fixed version 1.0.0
As of commit `4c47a2713aafdb105d5a45ca0f859d0e7290f617`, the version of built-in plugins is neither displayed nor used in any way. Built-in plugins are not distributed through the plugin manager, so they do not need `VERSION`. The version of built-in plugins is determined by both Micro's version and the commit hash. It is therefore unnecessary to maintain it using a third version (`VERSION` in Lua). Rather than removing `VERSION`, keep it in the code and document that it should remain at version `1.0.0`. This way, the information remains available to contributors and users. `VERSION` is a vital part of the plugin manager. Removing it from built-in plugins could confuse people who use them as references for their own plugins.
1 parent 4c47a27 commit 80aaded

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

runtime/plugins/autoclose/autoclose.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local uutil = import("micro/util")
44
local utf8 = import("utf8")

runtime/plugins/comment/comment.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local util = import("micro/util")
44
local config = import("micro/config")

runtime/plugins/diff/diff.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local os = import("os")
44
local filepath = import("path/filepath")

runtime/plugins/ftoptions/ftoptions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
function onBufferOpen(b)
44
local ft = b:FileType()

runtime/plugins/linter/linter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local micro = import("micro")
44
local runtime = import("runtime")

runtime/plugins/literate/literate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local config = import("micro/config")
44

runtime/plugins/status/status.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0
22

33
local micro = import("micro")
44
local buffer = import("micro/buffer")

0 commit comments

Comments
 (0)