micro changes

This commit is contained in:
Nico 2021-10-01 10:43:02 +01:00
parent 283f75b8af
commit fa9d4308b5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
local micro = import("micro")
local config = import("micro/config")
local buf = import("micro/buffer")
@ -5,6 +6,11 @@ local util = import("micro/util")
local path = import("path")
local time = import("time")
--package.path = package.path .. ';/home/nico/.config/micro/?.lua';
--local fennel = require("fennel")
--table.insert(package.loaders or package.searchers, fennel.searcher)
--local config = require("config") -- will compile and load code in config.fnl
function gotofile(bp)
local selection = bp.Cursor.CurSelection -- cursor position
local line = bp.buf.Line(bp.buf, selection[1]["Y"]) -- get the current line
@ -63,3 +69,4 @@ function init()
config.MakeCommand("zi", zettelInsert, config.NoComplete)
config.TryBindKey("MouseRight", "lua:initlua.gotofile", true)
end

View File

@ -1,4 +1,5 @@
{
"colorscheme": "nico",
"ruler": false,
"softwrap": true
}