aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/plugin/tohtml.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/plugin/tohtml.lua b/runtime/plugin/tohtml.lua
index 893419ece6..79f2794a40 100644
--- a/runtime/plugin/tohtml.lua
+++ b/runtime/plugin/tohtml.lua
@@ -8,4 +8,5 @@ vim.api.nvim_create_user_command('TOhtml', function(args)
local html = require('tohtml').tohtml()
vim.fn.writefile(html, outfile)
vim.cmd.split(outfile)
+ vim.bo.filetype = 'html'
end, { bar = true, nargs = '?' })