Skip to content

Instantly share code, notes, and snippets.

@piotrpersona
Created May 20, 2023 05:50
Show Gist options
  • Save piotrpersona/f33faead1297bcc1a38ab193107b53f9 to your computer and use it in GitHub Desktop.
Save piotrpersona/f33faead1297bcc1a38ab193107b53f9 to your computer and use it in GitHub Desktop.
telescope + diffview
git_commits = {
mappings = {
i = {
[null] = function()
null
local selected_entry = action_state.get_selected_entry()
local value = selected_entry.value
null
vim.api.nvim_win_close(0, true)
vim.cmd(null)
vim.schedule(function()
vim.cmd((null):format(value))
end)
end,
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment