diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-06-26 16:22:13 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-06-26 16:22:13 +0200 |
| commit | 1a9f87f584d37ccea3ea84b788a4eb36321ccbb9 (patch) | |
| tree | e0e311c41e5fc11a4a34cf0e1ecede4cae3e2dd0 /config/vis/visrc.lua | |
| parent | 4dc775365f50dd1e7d99ab81cd983c47c4feee4f (diff) | |
| download | dotfiles-1a9f87f584d37ccea3ea84b788a4eb36321ccbb9.tar.gz dotfiles-1a9f87f584d37ccea3ea84b788a4eb36321ccbb9.zip | |
[vis] add suw plugin to write as root
Diffstat (limited to 'config/vis/visrc.lua')
| -rw-r--r-- | config/vis/visrc.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index ce42ab9..a4a2a14 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -8,6 +8,8 @@ require('plugins/vis-commentary/vis-commentary') -- This hooks vis.events.START so its fine to load it before the default settings require('plugins/vis-modelines/vis-modelines') +require('plugins/suw') + vis.events.subscribe(vis.events.INIT, function() -- Your global configuration options local theme = "default" @@ -31,8 +33,7 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) win:set_syntax("diff") end - local filetype = win.file.name:match(".*%.(.*)") - if filetype == "py" then + if win.syntax == "python" then vis:command("set expand") end end |
