diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-09-27 22:46:58 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-09-27 22:51:38 +0200 |
| commit | 34acb0ba0589b94f36596fbef2c7b59f0997456f (patch) | |
| tree | 95737d0383f4f1673086413ac25b534fea04e966 /visrc.lua | |
| parent | 521925a3d25449f429e89a20145f14f259014368 (diff) | |
| download | vis-34acb0ba0589b94f36596fbef2c7b59f0997456f.tar.gz vis-34acb0ba0589b94f36596fbef2c7b59f0997456f.tar.xz | |
visrc: move global settings to start handler
There is no need to set global settings for each window.
Diffstat (limited to 'visrc.lua')
| -rw-r--r-- | visrc.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,11 +1,15 @@ -- load standard vis module, providing parts of the Lua API require('vis') +vis.events.start = function() + -- Your global configuration options e.g. + -- vis:command('map! normal j gj') +end + vis.events.win_open = function(win) -- enable syntax highlighting for known file types vis.filetype_detect(win) - -- Your local configuration options e.g. + -- Your per window configuration options e.g. -- vis:command('set number') - -- vis:command('map! normal j gj') end |
