Compare commits
3 Commits
99ccdb3a64
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
3283ce0ed1
|
|||
|
d24dacb952
|
|||
|
07c630b2dd
|
2
config_files/layzgit_config.yml
Normal file
2
config_files/layzgit_config.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
git:
|
||||
overrideGpg: true
|
||||
@@ -1,3 +1,38 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
vim.keymap.set("n", "<leader>gO", function()
|
||||
local git_root = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
||||
if vim.v.shell_error ~= 0 or not git_root then
|
||||
vim.notify("Not in a git repository", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
local output = vim.fn.systemlist("git status --porcelain")
|
||||
local files = {}
|
||||
for _, line in ipairs(output) do
|
||||
if line ~= "" then
|
||||
local status = line:sub(1, 2)
|
||||
-- skip deleted files
|
||||
if not status:match("D") then
|
||||
local filepath = line:sub(4)
|
||||
-- handle renames: "old -> new"
|
||||
local arrow_pos = filepath:find(" -> ")
|
||||
if arrow_pos then
|
||||
filepath = filepath:sub(arrow_pos + 4)
|
||||
end
|
||||
if filepath ~= "" then
|
||||
table.insert(files, git_root .. "/" .. filepath)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if #files == 0 then
|
||||
vim.notify("No modified files found", vim.log.levels.INFO)
|
||||
return
|
||||
end
|
||||
for _, file in ipairs(files) do
|
||||
vim.cmd.edit(vim.fn.fnameescape(file))
|
||||
end
|
||||
vim.notify("Opened " .. #files .. " modified file(s)", vim.log.levels.INFO)
|
||||
end, { desc = "Open all git modified files" })
|
||||
|
||||
@@ -8,7 +8,7 @@ return {
|
||||
go = { "goimports", "gofumpt" },
|
||||
xml = { "lemminx" },
|
||||
ruby = { "standardrb" },
|
||||
json = { "biome", "json-lsp" },
|
||||
json = { "biome" },
|
||||
css = { "biome" },
|
||||
javascript = { "biome" },
|
||||
sql = { "pg_format" },
|
||||
|
||||
@@ -8,27 +8,39 @@ alias fd='fdfind'
|
||||
|
||||
alias sudo-shell='sudo -E zsh'
|
||||
|
||||
# [Development]
|
||||
# [Development] =======================================================================
|
||||
# conditional wezterm
|
||||
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
|
||||
alias wezterm='/mnt/c/Users/DaveanandMannie/scoop/apps/wezterm/current/wezterm.exe'
|
||||
else
|
||||
alias wezterm='wezterm' # Or point to native binary if needed
|
||||
fi
|
||||
alias lg='lazygit'
|
||||
# [Odoo]
|
||||
alias erp-dev='cd ~/workspace/pg/erp/'
|
||||
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
|
||||
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
|
||||
# [portal]
|
||||
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
||||
alias portal-dev='cd ~/workspace/pg/portal/'
|
||||
|
||||
# [portal]
|
||||
alias company-store='cd ~/workspace/pg/company_stores/'
|
||||
pgdb() {
|
||||
local dir="$HOME/workspace/docker/databases/"
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
echo "\033[31mNot on work computer\033[0m"
|
||||
else
|
||||
cd "$dir"
|
||||
fi
|
||||
}
|
||||
|
||||
alias lg='lazygit'
|
||||
alias ..nvim="../ && nvim"
|
||||
|
||||
# [Claude Code]
|
||||
# [Odoo] =======================================================================
|
||||
alias erp-dev='cd ~/workspace/pg/erp/'
|
||||
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
|
||||
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
|
||||
# [portal] =======================================================================
|
||||
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
||||
alias portal-dev='cd ~/workspace/pg/portal/'
|
||||
|
||||
# [solidus] =======================================================================
|
||||
alias company-store='cd ~/workspace/pg/company_stores/'
|
||||
alias company-stores='cd ~/workspace/pg/company_stores/'
|
||||
|
||||
|
||||
# [Claude Code] =======================================================================
|
||||
alias claude-clean='rm -f ~/.claude.json.backup*'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user