@zyedidia Awesome - is there a test build I can try?
Edit - I see you pushed the commit here - zyedidia/micro@49786cf - I can just build myself :)
@tobias1012 Yes I think the source will have to be modified a bit to support autocompletion via plugins. I experimented with implementing LSP in the core which you can find on the
lspbranch (run with
-debugand inspect the log to look at what's going on -- it should support autocomplete, autoformatting and "hover" info via a keybinding), but I think it might be better to offload more of the work to a plugin and have minimal lsp support in the core. I'll have to revisit this at some point.
I think I'll try to get some autocomplete functionality with plugins, I don't know how usable that would be, but then the lsp branch could be entierly offloaded
local util = import("micro/util") function preInsertNewline(bp) if bp.Buf:FileType() == "python" then local curLine = bp.Buf:Line(bp.Cursor.Y) if bp.Cursor.X == util.CharacterCountInString(curLine) and bp.Cursor.X > 0 and util.RuneAt(curLine, bp.Cursor.X-1) == ":" then bp:InsertNewline() bp:InsertTab() return false end end return true end
curl https://getmic.ro | bash
$HOME/binexists (if not,
mkdirit) and it has execute, write, read acess
cd $HOME/binis better :p)