mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add git fixup in telescope
This commit is contained in:
@@ -151,7 +151,7 @@ in {
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
package = pkgs.transmission_4;
|
||||
# Make downloaded items readable/writtable by users
|
||||
# Make downloaded items readable/writable by users
|
||||
group = "users";
|
||||
settings = {
|
||||
incomplete-dir-enabled = false;
|
||||
|
||||
@@ -55,6 +55,12 @@ return {
|
||||
vim.cmd("Gedit " .. entry.value)
|
||||
end
|
||||
|
||||
local function git_fixup(bufr)
|
||||
actions.close(bufr)
|
||||
local entry = action_state.get_selected_entry()
|
||||
vim.cmd("G commit --fixup=" .. entry.value)
|
||||
end
|
||||
|
||||
|
||||
local telescope = require("telescope")
|
||||
telescope.setup({
|
||||
@@ -87,7 +93,8 @@ return {
|
||||
mappings = {
|
||||
i = {
|
||||
["<CR>"] = git_show,
|
||||
["<C-g>"] = git_show_split
|
||||
["<C-g>"] = git_show_split,
|
||||
["<C-f>"] = git_fixup,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -96,7 +103,8 @@ return {
|
||||
mappings = {
|
||||
i = {
|
||||
["<CR>"] = git_show,
|
||||
["<C-g>"] = git_show_split
|
||||
["<C-g>"] = git_show_split,
|
||||
["<C-f>"] = git_fixup,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user