blob: a2bfa7849e680537dbf967890a4ffd6f470d7699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
-- This file makes the plugin load on startup and provide command if not already created
if vim.fn.exists(":ITVConvert") == 0 then
vim.api.nvim_create_user_command("ITVConvert", function()
local ok, err = pcall(function()
require("intellij_to_vscode").convert_all()
end)
if not ok then
vim.notify("ITVConvert failed: " .. tostring(err), vim.log.levels.ERROR)
end
end, {})
end
|