Browse Source

Add micro configs

pull/15/head
10sr 8 years ago
parent
commit
b999e7a108
2 changed files with 46 additions and 0 deletions
  1. +14
    -0
      micro/init.lua
  2. +32
    -0
      micro/settings.json

+ 14
- 0
micro/init.lua View File

@@ -0,0 +1,14 @@
-- ec = require("editorconfig_core")

function onViewOpen(view)
-- Is this portable? (work on windows?)
local pwd = os.getenv("PWD")
local filename = view.Buf.Path
-- prop, names = ec.parse(filepath)
local fullpath = JoinPaths(pwd, filename)
messenger:Message("view.Buf.Path: " .. fullpath)
end

function onSave(view)
messenger:Message("Saved!")
end

+ 32
- 0
micro/settings.json View File

@@ -0,0 +1,32 @@
{
"autoclose": true,
"autoindent": true,
"autosave": false,
"colorcolumn": 0,
"colorscheme": "solarized",
"cursorline": true,
"gofmt": true,
"goimports": false,
"ignorecase": false,
"indentchar": " ",
"infobar": true,
"linter": true,
"pluginchannels": [
"https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json"
],
"pluginrepos": [],
"ruler": true,
"savecursor": false,
"saveundo": false,
"scrollmargin": 3,
"scrollspeed": 2,
"softwrap": false,
"statusline": true,
"syntax": true,
"tabsize": 4,
"tabstospaces": false,
"*.json": {
"tabsize": 4,
"indentchar": "\t"
}
}

Loading…
Cancel
Save