Fix ctrl-p in Git

This commit is contained in:
Greg Hellings
2024-03-28 09:36:46 -05:00
committed by greg-compass
parent 173b24844d
commit d5b2f46a55
3 changed files with 4 additions and 11 deletions
-7
View File
@@ -35,10 +35,3 @@ api.nvim_create_autocmd({ "BufRead", "BufNewFile"}, {
pattern = "Vagrantfile*",
command = "set filetype=ruby"
})
if api.nvim_command_output("!git rev-parse --is-inside-work-tree") == true then
vim.keymap.set(all, "<C-p>", ":GFiles --cached --others --exclude-standard<CR>")
vim.keymap.set(all, "<C-o>", ":GFiles?<CR>")
else
vim.keymap.set(all, "<C-p>", ":Files<CR>")
end