Add plugin manager

This commit is contained in:
Zachary Yedidia
2020-02-01 23:54:38 -05:00
parent b0b5d7b392
commit bcb1947a0a
20 changed files with 836 additions and 319 deletions

View File

@@ -1,3 +1,5 @@
VERSION = "1.0.0"
local uutil = import("micro/util")
local utf8 = import("utf8")
local autoclosePairs = {"\"\"", "''", "``", "()", "{}", "[]"}

View File

@@ -1,10 +0,0 @@
{
"name": "autoclose",
"description": "Automatically places closing characters for quotes, parentheses, brackets, etc...",
"website": "https://github.com/zyedidia/micro",
"install": "https://github.com/zyedidia/micro",
"version": "1.0.0",
"require": [
"micro >= 2.0.0"
]
}

View File

@@ -1,3 +1,5 @@
VERSION = "1.0.0"
local util = import("micro/util")
local config = import("micro/config")
local buffer = import("micro/buffer")
@@ -102,5 +104,7 @@ function string.starts(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
config.MakeCommand("comment", "comment.comment", config.NoComplete)
config.TryBindKey("Alt-/", "lua:comment.comment", false)
function init()
config.MakeCommand("comment", "comment.comment", config.NoComplete)
config.TryBindKey("Alt-/", "lua:comment.comment", false)
end

View File

@@ -1,10 +0,0 @@
{
"name": "comment",
"description": "Support for automatically commenting blocks of code. Extensible and multiple languages supported.",
"website": "https://github.com/zyedidia/micro",
"install": "https://github.com/zyedidia/micro",
"version": "1.0.0",
"require": [
"micro >= 2.0.0"
]
}

View File

@@ -1,3 +1,5 @@
VERSION = "1.0.0"
function onBufferOpen(b)
local ft = b:FileType()

View File

@@ -1,10 +0,0 @@
{
"name": "ftoptions",
"description": "Sets basic options based on the filetype (for example Makefiles require tabs).",
"website": "https://github.com/zyedidia/micro",
"install": "https://github.com/zyedidia/micro",
"version": "1.0.0",
"require": [
"micro >= 2.0.0"
]
}

View File

@@ -1,10 +0,0 @@
{
"name": "linter",
"description": "Automatic code linting for a variety of languages.",
"website": "https://github.com/zyedidia/micro",
"install": "https://github.com/zyedidia/micro",
"version": "1.0.0",
"require": [
"micro >= 2.0.0"
]
}

View File

@@ -1,3 +1,5 @@
VERSION = "1.0.0"
local micro = import("micro")
local runtime = import("runtime")
local filepath = import("path/filepath")

View File

@@ -1,10 +0,0 @@
{
"name": "literate",
"description": "Highlighting and language support for the Literate programming tool.",
"website": "https://github.com/zyedidia/Literate",
"install": "https://github.com/zyedidia/micro",
"version": "1.0.0",
"require": [
"micro >= 2.0.0"
]
}

View File

@@ -1,3 +1,5 @@
VERSION = "1.0.0"
local config = import("micro/config")
function startswith(str, start)

View File

@@ -1,6 +1,8 @@
micro = import("micro")
buffer = import("micro/buffer")
config = import("micro/config")
VERSION = "1.0.0"
local micro = import("micro")
local buffer = import("micro/buffer")
local config = import("micro/config")
function init()
micro.SetStatusInfoFn("status.branch")