aboutsummaryrefslogtreecommitdiff
path: root/lua/visrc.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-07 19:50:43 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-07 23:44:25 +0100
commit065a804d282ac99dd93e9ebaf7bc986ccf53e75b (patch)
treeffba38ecb6dad1852fb79e9ea4f67a3333c9f376 /lua/visrc.lua
parent1b896d13b8384958e7b898d85869468eee729961 (diff)
downloadvis-065a804d282ac99dd93e9ebaf7bc986ccf53e75b.tar.gz
vis-065a804d282ac99dd93e9ebaf7bc986ccf53e75b.tar.xz
lua: move non-core code out of vis.lua
The following structure is adapted: * visrc.lua entry point for all Lua code * vis.lua only implements the Lua part of the core API * vis-std.lua registers standard event handlers (e.g. syntax highlighting, statusbar handling, theme changes etc). It is sourced from vis.lua. * plugins/* non essential editor functionality, needs to be explicitly enabled by loading it from visrc.lua
Diffstat (limited to 'lua/visrc.lua')
-rw-r--r--lua/visrc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/visrc.lua b/lua/visrc.lua
index 95aa1c0..4c44f6a 100644
--- a/lua/visrc.lua
+++ b/lua/visrc.lua
@@ -1,5 +1,7 @@
-- load standard vis module, providing parts of the Lua API
require('vis')
+require('plugins/filetype')
+require('plugins/textobject-lexer')
vis.events.start = function()
-- Your global configuration options e.g.