diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-07 00:11:36 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-07 00:11:36 +0200 |
commit | 9b4ead61b5b21e98d16a75b3e0ac411e8bb9f665 (patch) | |
tree | 8a58063e712035e2f21db44ef7eabbe4b62017c5 /config | |
parent | 6a343296e639e86ca16c681ccdd095ecc3216be3 (diff) |
added pantran configuration
Diffstat (limited to 'config')
-rw-r--r-- | config/essentials/nvim/after/plugin/pantran.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/essentials/nvim/after/plugin/pantran.lua b/config/essentials/nvim/after/plugin/pantran.lua new file mode 100644 index 0000000..a7aab19 --- /dev/null +++ b/config/essentials/nvim/after/plugin/pantran.lua @@ -0,0 +1,18 @@ +require("pantran").setup{ + controls = { + mappings = { + edit = { + n = { + ["j"] = "gj", + ["k"] = "gk", + } + } + } + } +} +local pantran = require('pantran') +local opts = {noremap = true, silent = true, expr = true} +vim.keymap.set("n", "<leader>tr", pantran.motion_translate, opts) + +vim.keymap.set("n", "<leader>trr", function() return pantran.motion_translate() .. "_" end, opts) +vim.keymap.set("x", "<leader>tr", pantran.motion_translate, opts) |