From ffc4520ba94291725707b0e76847e105b7f39a94 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 9 Jul 2026 17:27:30 +0100 Subject: [PATCH] More projects --- lua/plugins/blade-nav.lua | 11 ++++++----- lua/projects/hylark.lua | 8 +++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lua/plugins/blade-nav.lua b/lua/plugins/blade-nav.lua index 65e6e46..7957435 100644 --- a/lua/plugins/blade-nav.lua +++ b/lua/plugins/blade-nav.lua @@ -1,7 +1,8 @@ return { - 'ricardoramirezr/blade-nav.nvim', - dependencies = { -- totally optional - 'saghen/blink.cmp', -- if using blink.cmp - }, - ft = { 'blade', 'php' }, -- optional, improves startup time + -- 'ricardoramirezr/blade-nav.nvim', + -- dependencies = { -- totally optional + -- 'saghen/blink.cmp', -- if using blink.cmp + -- }, + -- ft = { 'blade', 'php' }, -- optional, improves startup time } + diff --git a/lua/projects/hylark.lua b/lua/projects/hylark.lua index dba19fe..077b2c0 100644 --- a/lua/projects/hylark.lua +++ b/lua/projects/hylark.lua @@ -24,6 +24,11 @@ return function(dir) switch_to(dir) end + local function compile_typescript() + vim.fn.jobstart('php artisan typescript:transform', { cwd = dir .. '/server', stdout_buffered = true }) + vim.notify('Compiling typescript types', vim.log.levels.INFO, { title = 'hylark.lua' }) + end + map('pl', ':cexpr system("vendor/bin/phpstan analyse --no-progress --error-format=raw --memory-limit=2G -vv") ', { desc = 'Run lint' }) map('T', function() helpers.open_term { cmd = 'lazysql pgsql://homestead:password@localhost:5432/homestead' } @@ -33,6 +38,7 @@ return function(dir) map('pcs', switch_to_server, { desc = 'Change working directory to server' }) map('pcf', switch_to_frontend, { desc = 'Change working directory to frontend2' }) map('pcr', switch_to_root, { desc = 'Change working directory to root' }) + map('pt', compile_typescript, { desc = 'Compile typescript' }) vim.api.nvim_create_autocmd({ 'BufWritePost' }, { pattern = { '*.php', '.env', '.graphql' }, @@ -42,7 +48,7 @@ return function(dir) vim.fn.jobstart('vendor/bin/sail artisan horizon:terminate', { stdout_buffered = true }) end if vim.fn.search '#\\[TypeScript\\]' ~= 0 then - vim.fn.jobstart('php artisan typescript:transform', { cwd = dir .. '/server', stdout_buffered = true }) + compile_typescript() end end, })