This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function surround_selection_with_backticks() | |
-- Get the visual selection | |
local lines = get_visual_selection() | |
-- Ensure lines are not nil | |
if not lines or #lines == 0 then | |
print("No lines selected") | |
return | |
end |