micro changes
This commit is contained in:
parent
283f75b8af
commit
fa9d4308b5
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"colorscheme": "nico",
|
||||
"ruler": false,
|
||||
"softwrap": true
|
||||
}
|
||||
|
|
Reference in New Issue