# shortenurl.nvim This is a small neovim plugin that can convert urls to short urls, using the `shoren-url` bash script found in my dotfiles repo. ## Usage ```lua vim.pack.add({ { src = "https://git.housh.dev/michael/shortenurl.nvim" }, }) ``` ### Create keybinds ```lua vim.keymap.set({ 'n', 'v', 'x' }, 'lc', function() require('shortenurl').convertUrl() end, { desc = "[L]ink [c]onvert to short url." }) vim.keymap.set('n', 'ls', function() require('shortenurl').prompt() end, { desc = "[L]ink [s]horten, prompting for url." }) vim.keymap.set('n', 'lv', function() require('shortenurl').convertFromClipboard() end, { desc = "[L]ink convert url from cliboard to short url." }) ```