diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:14:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:14:25 +0200 |
| commit | 4a63a682d4c3a2efb123fd939ccae928b9c6e1b9 (patch) | |
| tree | d55037d17b357370b492ed6aa94f4fb8c4d730a1 /config/vis/visrc.lua | |
| parent | 125237e4a7cf7e6d2ec28565d4403ab9c9908d85 (diff) | |
| download | dotfiles-4a63a682d4c3a2efb123fd939ccae928b9c6e1b9.tar.gz dotfiles-4a63a682d4c3a2efb123fd939ccae928b9c6e1b9.zip | |
[vis] add light solarized theme and add ctags plugin
theme can be switch by changing the symbolic link
.config/vis/themes/theme.lua.
Diffstat (limited to 'config/vis/visrc.lua')
| -rw-r--r-- | config/vis/visrc.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index 4bf1239..f3fa17d 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -5,6 +5,7 @@ require('plugins/textobject-lexer') require('plugins/vis-cursors/cursors').cursors_path = string.format('%s/vis/cursors', os.getenv('XDG_DATA_HOME') or os.getenv('HOME').."/.local/share") require('plugins/vis-spellcheck/spellcheck') require('plugins/vis-commentary/vis-commentary') +require('plugins/vis-ctags/ctags') -- This hooks vis.events.START so its fine to load it before the default settings require('plugins/vis-modelines/vis-modelines') @@ -12,11 +13,8 @@ require('plugins/suw') vis.events.subscribe(vis.events.INIT, function() -- Your global configuration options - local theme = "default" - if string.match(os.getenv('TERM'), '^st.*') then - theme = "st" - end - vis:command("set theme ".. theme .. (vis.ui.colors <= 16 and "-16" or "-256")) + local theme = "theme" + vis:command("set theme ".. theme) end) vis.events.subscribe(vis.events.WIN_OPEN, function(win) |
