summaryrefslogtreecommitdiff
path: root/config/essentials/vis/visrc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials/vis/visrc.lua')
-rw-r--r--config/essentials/vis/visrc.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/config/essentials/vis/visrc.lua b/config/essentials/vis/visrc.lua
index 7fc27cf..8b83eb4 100644
--- a/config/essentials/vis/visrc.lua
+++ b/config/essentials/vis/visrc.lua
@@ -157,7 +157,14 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- luacheck: no unused a
map_cmd(m.NORMAL, "\\si", "-/\\<if\\>/,/\\<fi\\>/", "Expand to if")
end
+ if win.syntax == "yaml" then
+ win.options.tabwidth = 2
+ win.options.expandtab = true
+ end
+
if win.syntax == "markdown" then
+ win.options.tabwidth = 2
+ win.options.expandtab = true
vis:map(m.NORMAL, "\\h", function()
vis:command("!lowdown $vis_filepath > ${vis_filepath%.md}.html")
vis:info("exported.")
@@ -166,8 +173,6 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- luacheck: no unused a
map_cmd(m.NORMAL, "\\sh", "-/^#+/,/^#+/-", "Expand to header")
-- select header block by name
-- ,x/^# Planning\n([^#]|\n)+
- win.options.tabwidth = 2
- win.options.expandtab = true
end
if win.syntax == "ansi_c" then