More project specific stuff

This commit is contained in:
2025-11-07 22:10:53 +00:00
parent f8f6d8e776
commit 529cfa79c8
3 changed files with 44 additions and 16 deletions

View File

@@ -3,7 +3,8 @@
local M = {}
-- Helper to create mappings
local map = require('helpers').map
local helpers = require 'helpers'
local map = helpers.map
-- Get the last folder name from a path
local function project_name_from_cwd(cwd)
@@ -20,6 +21,9 @@ local PROJECTS = {
':cexpr system("cd server && vendor/bin/phpstan analyse --no-progress --error-format=raw --memory-limit=2G -vv") <CR>',
{ desc = 'Run lint' }
)
map('<leader>db', function()
helpers.open_term { cmd = 'lazysql mysql://root@localhost:3306/runcats' }
end, { desc = 'Open database manager' })
map('s ', '!cd server && ', { desc = 'Run command in server directory' }, 'c')
map('c ', '!cd client && ', { desc = 'Run command in client directory' }, 'c')
map('sl ', '!cd server && sail ', { desc = 'Run sail command' }, 'c')