Introduce IndentLine action

Closes #1476
This commit is contained in:
Zachary Yedidia
2020-02-12 13:30:24 -05:00
parent 7b5bc8fe37
commit 12c286f9b1
5 changed files with 23 additions and 5 deletions

View File

@@ -194,6 +194,8 @@ DuplicateLine
DeleteLine
IndentSelection
OutdentSelection
OutdentLine
IndentLine
Paste
SelectAll
OpenFile

View File

@@ -66,12 +66,12 @@ the `misspell` linter which checks for misspelled words in a file.
```lua
local config = import("micro/config")
config.RegisterCommonOption("misspell", true)
function init()
-- uses the default linter plugin
-- matches any filetype
linter.makeLinter("misspell", "", "misspell", {"%f"}, "%f:%l:%c: %m", {}, false, true, 0, 0, hasMisspell)
config.RegisterCommonOption("misspell", true)
end
function hasMisspell(buf)