Compare commits

..

9 Commits

Author SHA1 Message Date
00ca94a9f3 Install: Add pdfarranger 2026-02-09 08:27:01 -08:00
8a1511f689 Install: Add beans 2026-02-09 08:26:53 -08:00
26b147b929 Install: Add worktrunk 2026-02-09 08:25:57 -08:00
fd555fab50 Install: Add OpenCode 2026-02-09 08:25:29 -08:00
8f7f7b90ca Neovim: Remove focus plugin 2026-02-09 08:25:06 -08:00
ec8418eccf VSCode: Update settings 2026-01-21 09:08:15 -08:00
79e25fcf19 Neovim: Only run prettier when there is a config
This might not do anything because of my config in lsp.lua
2026-01-21 09:08:03 -08:00
61ce808a45 Sway: Give Obsidian access to the clipboard by fixing focus 2026-01-21 08:42:57 -08:00
2434b4483c Neovim: Only run eslint or pretter as required by the project 2026-01-21 08:42:41 -08:00
9 changed files with 69 additions and 59 deletions

View File

@@ -181,3 +181,5 @@ fi
# ble.sh # ble.sh
# https://github.com/akinomyoga/ble.sh#13-set-up-bashrc # https://github.com/akinomyoga/ble.sh#13-set-up-bashrc
[[ ${BLE_VERSION-} ]] && ble-attach [[ ${BLE_VERSION-} ]] && ble-attach
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init bash)"; fi

View File

@@ -282,5 +282,6 @@
"editor.inlayHints.fontFamily": "Sriracha", "editor.inlayHints.fontFamily": "Sriracha",
"github.copilot.nextEditSuggestions.enabled": true, "github.copilot.nextEditSuggestions.enabled": true,
"gitlens.ai.model": "vscode", "gitlens.ai.model": "vscode",
"gitlens.ai.vscode.model": "copilot:gpt-4.1" "gitlens.ai.vscode.model": "copilot:gpt-4.1",
"workbench.startupEditor": "none"
} }

View File

@@ -0,0 +1,2 @@
# worktrunk completions for fish
complete --keep-order --exclusive --command wt --arguments "(test -n \"\$WORKTRUNK_BIN\"; or set -l WORKTRUNK_BIN (type -P wt 2>/dev/null); and COMPLETE=fish \$WORKTRUNK_BIN -- (commandline --current-process --tokenize --cut-at-cursor) (commandline --current-token))"

View File

@@ -0,0 +1,15 @@
# worktrunk shell integration for fish
# Sources full integration from binary on first use.
# Docs: https://worktrunk.dev/config/#shell-integration
# Check: wt config show | Uninstall: wt config shell uninstall
function wt
command wt config shell init fish | source
# Check both command exit code ($pipestatus[1]) and source exit code ($pipestatus[2])
# If source fails, the function isn't replaced and we'd infinite-loop calling ourselves
set -l wt_status $pipestatus[1]
set -l source_status $pipestatus[2]
test $wt_status -eq 0; or return $wt_status
test $source_status -eq 0; or return $source_status
wt $argv
end

View File

@@ -10,3 +10,6 @@ vim.g.lazyvim_prettier_needs_config = true
-- Use eslint for formatting. -- Use eslint for formatting.
vim.g.lazyvim_eslint_auto_format = true vim.g.lazyvim_eslint_auto_format = true
-- Only run prettier in directories where there is a config file.
vim.g.lazyvim_prettier_needs_config = false

View File

@@ -1,48 +0,0 @@
-- Resize window to prioritize the focused on.
-- https://github.com/nvim-focus/focus.nvim
return {
"nvim-focus/focus.nvim",
event = "VeryLazy",
opts = {
enable = true,
ui = {
-- Display line numbers in the focused window only.
hybridnumber = true,
-- Display signcolumn in the focused window only.
signcolumn = true,
},
},
config = function()
require("focus").setup({})
local ignore_buftypes = { "dbui", "nofile" }
local ignore_filetypes =
{ "dbui", "dapui_breakpoints", "dapui_stacks", "dapui_scopes", "dap_repl", "dapui_console" }
local augroup = vim.api.nvim_create_augroup("FocusDisable", { clear = true })
vim.api.nvim_create_autocmd("WinEnter", {
group = augroup,
callback = function(_)
if vim.tbl_contains(ignore_buftypes, vim.bo.buftype) then
vim.w.focus_disable = true
else
vim.w.focus_disable = false
end
end,
desc = "Disable focus autoresize for BufType",
})
vim.api.nvim_create_autocmd("FileType", {
group = augroup,
callback = function(_)
if vim.tbl_contains(ignore_filetypes, vim.bo.filetype) then
vim.b.focus_disable = true
else
vim.b.focus_disable = false
end
end,
desc = "Disable focus autoresize for FileType",
})
end,
}

View File

@@ -33,16 +33,40 @@ return {
}, },
}, },
-- Format with eslint on save -- Format with eslint on save, or prettier if project has prettier config
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
opts = { opts = function()
local function has_prettier_config(bufnr)
local root = vim.fs.root(bufnr, {
".prettierrc",
".prettierrc.json",
".prettierrc.js",
".prettierrc.cjs",
".prettierrc.yaml",
".prettierrc.yml",
"prettier.config.js",
"prettier.config.cjs",
})
return root ~= nil
end
local function js_formatters(bufnr)
if has_prettier_config(bufnr) then
return { "prettier" }
end
return { "eslint_d" }
end
return {
formatters_by_ft = { formatters_by_ft = {
javascript = { "eslint_d" }, javascript = js_formatters,
javascriptreact = { "eslint_d" }, javascriptreact = js_formatters,
typescript = { "eslint_d" }, typescript = js_formatters,
typescriptreact = { "eslint_d" }, typescriptreact = js_formatters,
}, svelte = js_formatters,
}, },
}
end,
}, },
} }

View File

@@ -236,6 +236,13 @@ bindsym $mod+r mode "resize"
# Capture rectangle # Capture rectangle
bindsym $mod+Shift+s exec grim -c -g "$(slurp)" - | satty --early-exit --output-filename "/home/tgrosinger/Pictures/$(date +'%Y-%m-%dT%H:%M:%S_grim.png')" --copy-command "wl-copy" -f - && swaymsg 'mode "default"' bindsym $mod+Shift+s exec grim -c -g "$(slurp)" - | satty --early-exit --output-filename "/home/tgrosinger/Pictures/$(date +'%Y-%m-%dT%H:%M:%S_grim.png')" --copy-command "wl-copy" -f - && swaymsg 'mode "default"'
#
# Program-specific rules
#
# Possible fix for using web clipper.
for_window [class="obsidian"] focus_on_window_activation focus
# #
# Theme # Theme
# #

View File

@@ -8,6 +8,7 @@ echo "Installing homebrew"
# Instead, install with npm -g. # Instead, install with npm -g.
brew install \ brew install \
anomalyco/tap/opencode \
atuin \ atuin \
bat \ bat \
btop \ btop \
@@ -20,13 +21,15 @@ brew install \
gh \ gh \
git \ git \
git-delta \ git-delta \
hmans/beans/beans \
jq \ jq \
lazygit \ lazygit \
neovim \ neovim \
restic \ restic \
ripgrep \ ripgrep \
stow \ stow \
tmux tmux \
worktrunk
#crane \ #crane \
#deno \ #deno \
#go \ #go \
@@ -82,6 +85,7 @@ flatpak install flathub org.gimp.GIMP
flatpak install flathub org.gimp.GIMP.Plugin.GMic flatpak install flathub org.gimp.GIMP.Plugin.GMic
flatpak install flathub org.musicbrainz.Picard flatpak install flathub org.musicbrainz.Picard
flatpak install flathub fr.handbrake.ghb flatpak install flathub fr.handbrake.ghb
flatpak install flathub com.github.jeromerobert.pdfarranger
# Install devbox # Install devbox
# https://www.jetify.com/docs/devbox/installing-devbox # https://www.jetify.com/docs/devbox/installing-devbox