Download nvim-linux-x86_64/share/nvim/runtime/plugin/tohtml.lua from skyzos/first-humanoid-dataset: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/datasets/skyzos/first-humanoid-dataset/resolve/main/nvim-linux-x86_64/share/nvim/runtime/plugin/tohtml.lua
- Command line
-
hf download hf://datasets/skyzos/first-humanoid-dataset/nvim-linux-x86_64/share/nvim/runtime/plugin/tohtml.lua
-
curl -L -o tohtml.lua https://huggingface.co/datasets/skyzos/first-humanoid-dataset/resolve/main/nvim-linux-x86_64/share/nvim/runtime/plugin/tohtml.lua
442 Bytes
| if vim.g.loaded_2html_plugin ~= nil then | |
| return | |
| end | |
| vim.g.loaded_2html_plugin = true | |
| vim.api.nvim_create_user_command('TOhtml', function(args) | |
| local outfile = args.args ~= '' and args.args or vim.fn.tempname() .. '.html' | |
| local html = require('tohtml').tohtml(0, { range = { args.line1, args.line2 } }) | |
| vim.fn.writefile(html, outfile) | |
| vim.cmd.split(outfile) | |
| vim.bo.filetype = 'html' | |
| end, { bar = true, nargs = '?', range = '%' }) | |