From 889b2c4cca5b15e2243d81e544d38fd5e8d4a110 Mon Sep 17 00:00:00 2001 From: wholteza Date: Mon, 30 Mar 2026 07:48:32 +0200 Subject: [PATCH 1/2] Adding treesitter context --- AppData/Local/nvim/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AppData/Local/nvim/init.lua b/AppData/Local/nvim/init.lua index 7dbdb6f..961010c 100644 --- a/AppData/Local/nvim/init.lua +++ b/AppData/Local/nvim/init.lua @@ -77,6 +77,7 @@ vim.pack.add({ 'https://github.com/folke/which-key.nvim', -- Shortcut hints (bar at the bottom when pressing space) 'https://github.com/nvim-lua/plenary.nvim', -- Helper lua functions, dep of todo-comments. 'https://github.com/nvim-treesitter/nvim-treesitter', -- Syntax highlighting + 'https://github.com/nvim-treesitter/nvim-treesitter-context', -- Show sticky headers when looking at nested structures 'https://github.com/stevearc/oil.nvim', -- File explorer }) @@ -133,6 +134,9 @@ require('oil').setup() require('nvim-treesitter').setup({ auto_install = true }) +require('treesitter-context').setup({ + enable = true +}) local vue_language_server_path = vim.fn.stdpath('data') .. "/mason/packages/vue-language-server/node_modules/@vue/language-server" local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' } From 3c54a6606667c26ac737ea44f61a6a3367a1b8d2 Mon Sep 17 00:00:00 2001 From: wholteza Date: Thu, 2 Apr 2026 10:45:16 +0200 Subject: [PATCH 2/2] Add layout for sf --- .profile.ps1 | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.profile.ps1 b/.profile.ps1 index efaa1cd..3d9153e 100644 --- a/.profile.ps1 +++ b/.profile.ps1 @@ -15,6 +15,14 @@ function Set-Title { Set-Alias -Name title -Value Set-Title Set-Alias -Name python3 -Value python +function To-Gif { + param( + [string]$inputFilePath, + [string]$outputFilePath + ) + ffmpeg -i $inputFilePath -vf "fps=10,scale=1080:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $outputFilePath +} + # Functions function d-up { @@ -45,6 +53,34 @@ function cdsf { Set-Location "C:\repos\storefront" } +function cdsfdev { + cdsf + $cwd = (Get-Location).Path + $w = "wezterm" + $vimPane = $env:WEZTERM_PANE + + function Send-Command($paneId, $cmd) { + & $w cli send-text --pane-id $paneId $cmd + & $w cli send-text --pane-id $paneId "`n" + } + + Send-Command $vimPane "vim ." + + $yarnPane = & $w cli split-pane --pane-id $vimPane --right --cwd $cwd + Start-Sleep -Milliseconds 300 + Send-Command $yarnPane "yarn install && yarn dev" + + $proxyPane = & $w cli split-pane --pane-id $yarnPane --bottom --cwd $cwd + Start-Sleep -Milliseconds 300 + Send-Command $proxyPane ".\proxy-win.ps1" + + $gitPane = & $w cli split-pane --pane-id $proxyPane --bottom --cwd $cwd + Start-Sleep -Milliseconds 300 + Send-Command $gitPane "git status" + + & $w cli activate-pane --pane-id $vimPane +} + function cdr { Set-Location "C:\repos" } @@ -64,6 +100,11 @@ function card { & "gpg" "--card-status" } +function spot { + title ncspot + ncspot +} + function Open-KubernetesDashboard { Write-Host "Ensuring doctl.." if ($os -eq 'Unix') { @@ -152,7 +193,7 @@ Set-Alias -Name dash -Value Open-KubernetesDashboard Set-Alias -Name cd-repos -Value cdr Set-Alias -Name repos -Value cdr Set-Alias -Name cd-sf -Value cdsf -Set-Alias -Name sf -Value cdsf +Set-Alias -Name sf -Value cdsfdev Set-Alias -Name cd-li -Value cdli Set-Alias -Name li -Value cdli