Skip to content

Instantly share code, notes, and snippets.

View datsfilipe's full-sized avatar
🤍
grinding

datsfilipe.xyz datsfilipe

🤍
grinding
View GitHub Profile
@datsfilipe
datsfilipe / vim_format_in_dir_keymap.lua
Last active January 12, 2025 21:08 — forked from inclooder/vim_format_in_dir
Format all files in directory using Neovim keymap
vim.keymap.set('n', '<leader>f', function()
local ext = vim.fn.expand '%:e'
local confirm =
vim.fn.input('proceed with formatting ' .. ext .. ' files? [y/n] ')
if confirm:lower() ~= 'y' then
print 'operation cancelled'
return
end
@datsfilipe
datsfilipe / github_pull_request.lua
Created April 19, 2025 06:08
Open pull request in Github easily with MiniGit
local M = {}
M.config = {
remotes = { 'fork', 'origin', 'upstream' },
default_base = nil,
browser_commands = {
mac = 'open',
unix = 'xdg-open',
win = 'start',
},