vim.keymap.set("n", "x", "source %", { buffer = true, desc = "Reloads the current config file" }) vim.keymap.set("n", "x", ".lua", { buffer = true, desc = "Executes the current line" }) vim.keymap.set("v", "x", "lua", { buffer = true, desc = "Executes the current selection" }) -- Open neovim plugins in github. vim.keymap.set("n", "gx", function() local path = vim.fn.expand('') local url = path:match([[^["']([^/]+/[^/]+)["'],?$]]) if url then path = "https://github.com/" .. url end vim.ui.open(path) end, { buffer = true })