diff options
Diffstat (limited to '.config/nvim/lua/plugins/turkish-deasciifier.lua')
-rw-r--r-- | .config/nvim/lua/plugins/turkish-deasciifier.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/turkish-deasciifier.lua b/.config/nvim/lua/plugins/turkish-deasciifier.lua new file mode 100644 index 0000000..c39a35d --- /dev/null +++ b/.config/nvim/lua/plugins/turkish-deasciifier.lua | |||
@@ -0,0 +1,24 @@ | |||
1 | return { | ||
2 | { | ||
3 | "yigitsever/turkish-deasciifier.vim", | ||
4 | init = function() | ||
5 | local map = require("helpers.keys").map | ||
6 | |||
7 | -- brute force deasciify everything | ||
8 | map({ "n", "x" }, "<leader>tc", "TurkishDeasciifyForce()", "force turkish characters", | ||
9 | { expr = true }) | ||
10 | map("n", "<leader>tctc", "TurkishDeasciifyForce() .. '_'", "force turkish characters eol", | ||
11 | { expr = true }) | ||
12 | |||
13 | -- use turkish-mode to selectively deasciify | ||
14 | map({ "n", "x" }, "<Leader>tr", "TurkishDeasciify()", "infer turkish characters", { expr = true }) | ||
15 | map("n", "<Leader>trtr", "TurkishDeasciify() .. '_'", "infer turkish characters eol", | ||
16 | { expr = true }) | ||
17 | |||
18 | -- ascii everything | ||
19 | map({ "n", "x" }, "<Leader>rt", "TurkishAsciify()", "remove turkish characters", { expr = true }) | ||
20 | map("n", "<Leader>rtrt", "TurkishAsciify() .. '_'", "remove turkish characters eol", | ||
21 | { expr = true }) | ||
22 | end, | ||
23 | } | ||
24 | } | ||