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/intellij_to_vscode.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/intellij_to_vscode/intellij_to_vscode.lua (limited to 'lua/intellij_to_vscode/intellij_to_vscode.lua') diff --git a/lua/intellij_to_vscode/intellij_to_vscode.lua b/lua/intellij_to_vscode/intellij_to_vscode.lua new file mode 100644 index 0000000..a2bfa78 --- /dev/null +++ b/lua/intellij_to_vscode/intellij_to_vscode.lua @@ -0,0 +1,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 -- cgit v1.2.3