From 065a804d282ac99dd93e9ebaf7bc986ccf53e75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 7 Dec 2016 19:50:43 +0100 Subject: 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 --- lua/visrc.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/visrc.lua') 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. -- cgit v1.2.3