From 131589e0e7ccf16a7657b1b624441b503eb77545 Mon Sep 17 00:00:00 2001 From: SL1900 Date: Sat, 9 Aug 2025 03:41:05 +0900 Subject: [PATCH] Added translation plugin "Pantran" --- lua/plugins/pantran.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lua/plugins/pantran.lua diff --git a/lua/plugins/pantran.lua b/lua/plugins/pantran.lua new file mode 100644 index 0000000..3ce52f1 --- /dev/null +++ b/lua/plugins/pantran.lua @@ -0,0 +1,14 @@ +return { + "potamides/pantran.nvim", + config = function () + local pantran = require("pantran") + pantran.setup({ + default_engine = "google", + window = { + title_border = { "<<", ">>" }, + } + }) + vim.keymap.set("n", "tr", pantran.motion_translate, {expr=true}) + vim.keymap.set("v", "tr", pantran.motion_translate, {expr=true}) + end, +}