use editorconfig, multiple interactives and dark/light themes in vis
This commit is contained in:
parent
80f261f3c1
commit
e69a88ae88
@ -2,6 +2,7 @@
|
|||||||
require('vis')
|
require('vis')
|
||||||
require('plugins/complete-word')
|
require('plugins/complete-word')
|
||||||
require('plugins/myfiletype')
|
require('plugins/myfiletype')
|
||||||
|
require('editorconfig/editorconfig')
|
||||||
|
|
||||||
vis.events.subscribe(vis.events.INIT, function()
|
vis.events.subscribe(vis.events.INIT, function()
|
||||||
-- Your global configuration options
|
-- Your global configuration options
|
||||||
@ -42,8 +43,22 @@ end)
|
|||||||
|
|
||||||
vis:map(vis.modes.NORMAL, ";;", "<vis-window-next>")
|
vis:map(vis.modes.NORMAL, ";;", "<vis-window-next>")
|
||||||
|
|
||||||
|
interactives = {
|
||||||
|
["python"] = "!python -i $vis_filename",
|
||||||
|
["haskell"] = "!stack ghci $vis_filepath",
|
||||||
|
["lithaskell"] = "!stack ghci $vis_filepath",
|
||||||
|
}
|
||||||
vis:map(vis.modes.NORMAL, ";i", function()
|
vis:map(vis.modes.NORMAL, ";i", function()
|
||||||
if vis.win.syntax == "python" then
|
local command = interactives[vis.win.syntax]
|
||||||
vis:command("!python -i $vis_filename")
|
if command then
|
||||||
|
vis:command(command)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
vis:map(vis.modes.NORMAL, ";w", function()
|
||||||
|
vis:command('set theme light-16')
|
||||||
|
end)
|
||||||
|
|
||||||
|
vis:map(vis.modes.NORMAL, ";b", function()
|
||||||
|
vis:command('set theme dark-16')
|
||||||
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user