From b999e7a108429c0bface20229cb950b11308fb1b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 26 Oct 2016 17:07:18 +0900 Subject: [PATCH] Add micro configs --- micro/init.lua | 14 ++++++++++++++ micro/settings.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 micro/init.lua create mode 100644 micro/settings.json diff --git a/micro/init.lua b/micro/init.lua new file mode 100644 index 0000000..1422e4e --- /dev/null +++ b/micro/init.lua @@ -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 diff --git a/micro/settings.json b/micro/settings.json new file mode 100644 index 0000000..fb5edae --- /dev/null +++ b/micro/settings.json @@ -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" + } +}