Updated config

This commit is contained in:
2025-04-13 15:20:52 +02:00
parent ead7d8c480
commit 047a4808cc
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]