Hylark settings
This commit is contained in:
@@ -41,12 +41,11 @@ local PROJECTS = {
|
||||
-- end, { desc = 'Open the dump-server window' })
|
||||
|
||||
map(
|
||||
'<leader>psl',
|
||||
'<leader>pl',
|
||||
':cexpr system("cd server && vendor/bin/phpstan analyse --no-progress --error-format=raw --memory-limit=2G -vv") <CR>',
|
||||
{ desc = 'Run lint' }
|
||||
)
|
||||
map('<leader>pcl', ':cexpr system("cd client && tsc --allowJs --removeComments --noEmit") <CR>', { desc = 'Run lint' })
|
||||
map('<leader>db', function()
|
||||
map('<leader>pd', function()
|
||||
helpers.open_term { cmd = 'lazysql mysql://root@localhost:3306/runcats' }
|
||||
end, { desc = 'Open database manager' })
|
||||
map('<leader>E', ':e .env<CR>', { desc = 'Edit .env file' })
|
||||
@@ -58,7 +57,6 @@ local PROJECTS = {
|
||||
map('cmp ', '!cd server && composer ', { desc = 'Run composer script' }, 'c')
|
||||
map('yrn ', '!cd client && yarn ', { desc = 'Run yarn script' }, 'c')
|
||||
map('ts ', '!cd server && php artisan typescript:transform --format', { desc = 'Compile typescript' }, 'c')
|
||||
map('<C-S-F', ':vimgrep', { desc = 'Grep everywhere' })
|
||||
require('conform').formatters.pint = {
|
||||
append_args = {
|
||||
'--config=' .. dir .. '/server/pint.json',
|
||||
@@ -66,6 +64,19 @@ local PROJECTS = {
|
||||
}
|
||||
end,
|
||||
|
||||
['hylark'] = function(dir)
|
||||
map('<leader>pl', ':cexpr system("vendor/bin/phpstan analyse --no-progress --error-format=raw --memory-limit=2G -vv") <CR>', { desc = 'Run lint' })
|
||||
map('<leader>pd', function()
|
||||
helpers.open_term { cmd = 'lazysql pgsql://homestead:password@localhost:5432/homestead' }
|
||||
end, { desc = 'Open database manager' })
|
||||
map('<leader>E', ':e .env', { desc = 'Edit .env file' })
|
||||
map('s ', '!vendor/bin/sail ', { desc = 'Run sail command' }, 'c')
|
||||
map('art ', '!php artisan ', { desc = 'Run artisan command' }, 'c')
|
||||
map('sart ', '!vendor/bin/sail artisan ', { desc = 'Run artisan command with sail' }, 'c')
|
||||
map('cmp ', '!composer ', { desc = 'Run composer script' }, 'c')
|
||||
map('yrn ', '!cd frontend && yarn ', { desc = 'Run yarn script' }, 'c')
|
||||
end,
|
||||
|
||||
default = function() end,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user