Updated config

This commit is contained in:
Eduard Urbach 2025-04-13 15:20:52 +02:00
parent d5c16fc1a1
commit 6cb79f594a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
2 changed files with 11 additions and 2 deletions

View file

@ -23,8 +23,12 @@ vim.api.nvim_create_user_command("ToggleWord", function()
["=="] = "!=",
}
vim.tbl_add_reverse_lookup(inverse)
for key, value in pairs(inverse) do
inverse[value] = key
end
vim.cmd("normal! yiw")
local yanked = vim.fn.getreg('"')
local flipped = inverse[yanked]