From 1c3d6072b0a75666d3de5ae01ed3710f25877b20 Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Wed, 29 Oct 2025 16:47:41 +0100 Subject: Initial --- lua/intellij_to_vscode/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lua/intellij_to_vscode/init.lua (limited to 'lua/intellij_to_vscode/init.lua') diff --git a/lua/intellij_to_vscode/init.lua b/lua/intellij_to_vscode/init.lua new file mode 100644 index 0000000..8ff5251 --- /dev/null +++ b/lua/intellij_to_vscode/init.lua @@ -0,0 +1,21 @@ +local M = {} +local converter = require("intellij_to_vscode.converter") + +function M.setup(opts) + opts = opts or {} + M.opts = opts + vim.api.nvim_create_user_command("ITVConvert", function() + local ok, err = pcall(converter.convert_all, opts) + if not ok then + vim.notify("ITVConvert failed: " .. tostring(err), vim.log.levels.ERROR) + else + vim.notify("Converted IntelliJ run configurations to .vscode/launch.json", vim.log.levels.INFO) + end + end, {}) +end + +function M.convert_all(opts) + return converter.convert_all(opts or M.opts) +end + +return M -- cgit v1.2.3