aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules4
-rw-r--r--config/vis/visrc.lua7
2 files changed, 10 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index e5b3da7..2dc4262 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -22,3 +22,7 @@
[submodule "config/vis/plugins/vis-spellcheck"]
path = config/vis/plugins/vis-spellcheck
url = https://github.com/fischerling/vis-spellcheck
+
+[submodule "config/vis/plugins/vis-editorconfig"]
+ path = config/vis/plugins/vis-editorconfig
+ url = https://github.com/vktec/vis-editorconfig
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua
index 8a162d4..7fd8833 100644
--- a/config/vis/visrc.lua
+++ b/config/vis/visrc.lua
@@ -15,9 +15,10 @@ vis.events.subscribe(vis.events.INIT, function()
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
- vis:command('set number')
+ -- Default settings
vis:command('set tabwidth 4')
vis:command('set autoindent')
+ vis:command('set number')
vis:command('set colorcolumn 80')
vis:command('set show-tabs')
@@ -34,6 +35,10 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
end
end)
+-- load plugins that hook WIN_OPEN to change settings after hook with default settings
+require('plugins/vis-editorconfig/editorconfig')
+require('plugins/vis-simple-modeline/simple-modeline')
+
--vis.events.subscribe(vis.events.FILE_SAVE_PRE, function(file)
---- purge trailing whitespace
--local i = 1