Compare commits

..

3 Commits

Author SHA1 Message Date
3c54a66066 Add layout for sf 2026-04-02 10:45:16 +02:00
d73cabb72d Merge 2026-03-30 07:51:27 +02:00
889b2c4cca Adding treesitter context 2026-03-30 07:48:32 +02:00
2 changed files with 68 additions and 23 deletions

View File

@@ -15,6 +15,14 @@ function Set-Title {
Set-Alias -Name title -Value Set-Title Set-Alias -Name title -Value Set-Title
Set-Alias -Name python3 -Value python 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 # Functions
function d-up { function d-up {
@@ -45,6 +53,34 @@ function cdsf {
Set-Location "C:\repos\storefront" 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 { function cdr {
Set-Location "C:\repos" Set-Location "C:\repos"
} }
@@ -64,6 +100,11 @@ function card {
& "gpg" "--card-status" & "gpg" "--card-status"
} }
function spot {
title ncspot
ncspot
}
function Open-KubernetesDashboard { function Open-KubernetesDashboard {
Write-Host "Ensuring doctl.." Write-Host "Ensuring doctl.."
if ($os -eq 'Unix') { 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 cd-repos -Value cdr
Set-Alias -Name repos -Value cdr Set-Alias -Name repos -Value cdr
Set-Alias -Name cd-sf -Value cdsf 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 cd-li -Value cdli
Set-Alias -Name li -Value cdli Set-Alias -Name li -Value cdli

View File

@@ -78,25 +78,26 @@ vim.api.nvim_create_autocmd("FileType", {
-- SECTION: Install packages -- SECTION: Install packages
vim.pack.add({ vim.pack.add({
"https://github.com/catppuccin/nvim", -- color scheme 'https://github.com/catppuccin/nvim', -- color scheme
"https://github.com/nvim-mini/mini.pick", -- File picker, grep 'https://github.com/nvim-mini/mini.pick', -- File picker, grep
"https://github.com/nvim-mini/mini.pairs", -- Auto create {}, (), [] - pairs etc. 'https://github.com/nvim-mini/mini.pairs', -- Auto create {}, (), [] - pairs etc.
"https://github.com/nvim-mini/mini.notify", -- Popup notifications 'https://github.com/nvim-mini/mini.notify', -- Popup notifications
"https://github.com/nvim-mini/mini.completion", -- Autocomplete, needs snippets and icons 'https://github.com/nvim-mini/mini.completion', -- Autocomplete, needs snippets and icons
"https://github.com/nvim-mini/mini.snippets", -- Snippets 'https://github.com/nvim-mini/mini.snippets', -- Snippets
"https://github.com/nvim-mini/mini.icons", -- Icons 'https://github.com/nvim-mini/mini.icons', -- Icons
"https://github.com/nvim-mini/mini.cursorword", -- Highlight word under cursor 'https://github.com/nvim-mini/mini.cursorword', -- Highlight word under cursor
"https://github.com/nvim-mini/mini.hipatterns", -- Highlight todos and rgb colors 'https://github.com/nvim-mini/mini.hipatterns', -- Highlight todos and rgb colors
"https://github.com/nvim-mini/mini.statusline", -- Statusline at the bottom 'https://github.com/nvim-mini/mini.statusline', -- Statusline at the bottom
"https://github.com/neovim/nvim-lspconfig", -- Language servers 'https://github.com/neovim/nvim-lspconfig', -- Language servers
"https://github.com/mason-org/mason.nvim", -- LSP deps installer 'https://github.com/mason-org/mason.nvim', -- LSP deps installer
"https://github.com/mason-org/mason-lspconfig.nvim", -- Lets you install mason tooling using lsp names 'https://github.com/mason-org/mason-lspconfig.nvim', -- Lets you install mason tooling using lsp names
"https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim", -- Automatically install mason tooling 'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim', -- Automatically install mason tooling
"https://github.com/folke/lazydev.nvim", -- Automatically resolve vim api paths. 'https://github.com/folke/lazydev.nvim', -- Automatically resolve vim api paths.
"https://github.com/folke/which-key.nvim", -- Shortcut hints (bar at the bottom when pressing space) '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-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', -- Syntax highlighting
"https://github.com/stevearc/oil.nvim", -- File explorer 'https://github.com/nvim-treesitter/nvim-treesitter-context', -- Show sticky headers when looking at nested structures
'https://github.com/stevearc/oil.nvim', -- File explorer
"https://github.com/folke/snacks.nvim", -- Dep for claudecode "https://github.com/folke/snacks.nvim", -- Dep for claudecode
"https://github.com/coder/claudecode.nvim", -- Claude code "https://github.com/coder/claudecode.nvim", -- Claude code
}) })
@@ -147,9 +148,12 @@ require("claudecode").setup()
require("nvim-treesitter").setup({ require("nvim-treesitter").setup({
auto_install = true, auto_install = true,
}) })
local vue_language_server_path = vim.fn.stdpath("data") require('treesitter-context').setup({
.. "/mason/packages/vue-language-server/node_modules/@vue/language-server" enable = true
local tsserver_filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" } })
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' }
local vue_plugin = { local vue_plugin = {
name = "@vue/typescript-plugin", name = "@vue/typescript-plugin",
location = vue_language_server_path, location = vue_language_server_path,