Compare commits
9 Commits
a704cca231
...
00ca94a9f3
| Author | SHA1 | Date | |
|---|---|---|---|
| 00ca94a9f3 | |||
| 8a1511f689 | |||
| 26b147b929 | |||
| fd555fab50 | |||
| 8f7f7b90ca | |||
| ec8418eccf | |||
| 79e25fcf19 | |||
| 61ce808a45 | |||
| 2434b4483c |
@@ -181,3 +181,5 @@ fi
|
||||
# ble.sh
|
||||
# https://github.com/akinomyoga/ble.sh#13-set-up-bashrc
|
||||
[[ ${BLE_VERSION-} ]] && ble-attach
|
||||
|
||||
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init bash)"; fi
|
||||
|
||||
@@ -282,5 +282,6 @@
|
||||
"editor.inlayHints.fontFamily": "Sriracha",
|
||||
"github.copilot.nextEditSuggestions.enabled": true,
|
||||
"gitlens.ai.model": "vscode",
|
||||
"gitlens.ai.vscode.model": "copilot:gpt-4.1"
|
||||
"gitlens.ai.vscode.model": "copilot:gpt-4.1",
|
||||
"workbench.startupEditor": "none"
|
||||
}
|
||||
2
home/.config/fish/completions/wt.fish
Normal file
2
home/.config/fish/completions/wt.fish
Normal 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))"
|
||||
15
home/.config/fish/functions/wt.fish
Normal file
15
home/.config/fish/functions/wt.fish
Normal 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
|
||||
@@ -10,3 +10,6 @@ vim.g.lazyvim_prettier_needs_config = true
|
||||
|
||||
-- Use eslint for formatting.
|
||||
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
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
@@ -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",
|
||||
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 = {
|
||||
javascript = { "eslint_d" },
|
||||
javascriptreact = { "eslint_d" },
|
||||
typescript = { "eslint_d" },
|
||||
typescriptreact = { "eslint_d" },
|
||||
},
|
||||
javascript = js_formatters,
|
||||
javascriptreact = js_formatters,
|
||||
typescript = js_formatters,
|
||||
typescriptreact = js_formatters,
|
||||
svelte = js_formatters,
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -236,6 +236,13 @@ bindsym $mod+r mode "resize"
|
||||
# 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"'
|
||||
|
||||
#
|
||||
# Program-specific rules
|
||||
#
|
||||
|
||||
# Possible fix for using web clipper.
|
||||
for_window [class="obsidian"] focus_on_window_activation focus
|
||||
|
||||
#
|
||||
# Theme
|
||||
#
|
||||
|
||||
@@ -8,6 +8,7 @@ echo "Installing homebrew"
|
||||
# Instead, install with npm -g.
|
||||
|
||||
brew install \
|
||||
anomalyco/tap/opencode \
|
||||
atuin \
|
||||
bat \
|
||||
btop \
|
||||
@@ -20,13 +21,15 @@ brew install \
|
||||
gh \
|
||||
git \
|
||||
git-delta \
|
||||
hmans/beans/beans \
|
||||
jq \
|
||||
lazygit \
|
||||
neovim \
|
||||
restic \
|
||||
ripgrep \
|
||||
stow \
|
||||
tmux
|
||||
tmux \
|
||||
worktrunk
|
||||
#crane \
|
||||
#deno \
|
||||
#go \
|
||||
@@ -82,6 +85,7 @@ flatpak install flathub org.gimp.GIMP
|
||||
flatpak install flathub org.gimp.GIMP.Plugin.GMic
|
||||
flatpak install flathub org.musicbrainz.Picard
|
||||
flatpak install flathub fr.handbrake.ghb
|
||||
flatpak install flathub com.github.jeromerobert.pdfarranger
|
||||
|
||||
# Install devbox
|
||||
# https://www.jetify.com/docs/devbox/installing-devbox
|
||||
|
||||
Reference in New Issue
Block a user