Commit: d0f755f0d693bdb6c769a39ba3783cd804b5b4dd Parent: 754e503f1bcdae4b304064848f7a38ce4fae78f1 Author: Randy Palamar Date: Wed, 30 Aug 2023 10:06:00 -0600 vis: add filetype settings for matlab/latex Diffstat:
M | .config/vis/visrc.lua | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -12,6 +12,15 @@ spell.default_lang = "en_US" local mww = 72 -- Min Window Width +-- detect matlab with %.m not objective_c +vis.ftdetect.filetypes.matlab = {} +vis.ftdetect.filetypes.matlab.ext = { "%.m$" } +assert(table.remove(vis.ftdetect.filetypes.objective_c.ext, 1) == "%.m$") + +-- use smaller tabs for heavily nested matlab classes and latex +vis.ftdetect.filetypes.latex.cmd = { "set tw 4" } +vis.ftdetect.filetypes.matlab.cmd = { "set tw 4" } + vis.events.subscribe(vis.events.INIT, function() vis:command("set theme term") vis.options.ai = true