Skip to content

Commit

Permalink
chore: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpinn committed Dec 19, 2024
1 parent 5a9893a commit ab8c526
Show file tree
Hide file tree
Showing 14 changed files with 92 additions and 28 deletions.
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ dump-brew:

install: install-bash \
install-bin \
install-espanso \
install-git \
install-mise \
install-npm \
Expand All @@ -87,10 +86,6 @@ install-bin:
mkdir -p $(HOME)/.local/bin
cp -p -- $(BINS) $(HOME)/.local/bin/

install-espanso:
mkdir -p "$(HOME)/Library/Application Support/espanso"
cp -pR -- espanso/* "$(HOME)/Library/Application Support/espanso/"

install-git: git/config
mkdir -p -- $(XDG_CONFIG_HOME)/git
cp -p -- git/config $(XDG_CONFIG_HOME)/git/config
Expand Down
5 changes: 5 additions & 0 deletions git/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
di = diff
dc = diff --cached

# Difftastic aliases, so `git dlog` is `git log` with difftastic and so on.
dlog = -c diff.external=difft log --ext-diff
dshow = -c diff.external=difft show --ext-diff
ddiff = -c diff.external=difft diff

# Log
changelog = log --reverse origin..HEAD --format='* %s%n%w(,4,4)%+b'
glg = log --oneline --decorate --all --graph --abbrev-commit
Expand Down
87 changes: 73 additions & 14 deletions homebrew/work.Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ tap "espanso/espanso"
tap "homebrew/bundle"
tap "homebrew/cask-fonts"
tap "reainternal/stable", "[email protected]:cowbell/homebrew-stuff"
# Macro processing language
brew "m4", link: true
# Automatic configure script builder
brew "autoconf"
# Cryptography and SSL/TLS Toolkit
brew "openssl@3"
# YAML Parser
brew "libyaml"
# Library for command-line editing
brew "readline"
# CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
brew "aws-sam-cli"
# Official Amazon AWS command-line interface
Expand All @@ -15,12 +25,24 @@ brew "bash-completion@2"
brew "cheat"
# Statistics utility to count lines of code
brew "cloc"
# Diff that understands syntax
brew "difftastic"
# Docker Credential Helper for Amazon ECR
brew "docker-credential-helper-ecr"
# Pluggable and configurable code formatting platform written in Rust
brew "dprint"
# Simple, fast and user-friendly alternative to find
brew "fd"
# Command-line fuzzy finder written in Go
brew "fzf"
# GitHub command-line tool
brew "gh"
# Distributed revision control system
brew "git"
# GNU multiple precision arithmetic library
brew "gmp"
# GNU Pretty Good Privacy (PGP) package
brew "gnupg"
# Smarter Dockerfile linter to validate best practices
brew "hadolint"
# Post-modern modal text editor
Expand All @@ -31,22 +53,26 @@ brew "htop"
brew "hyperfine"
# Lightweight and flexible command-line JSON processor
brew "jq"
# Simple terminal UI for git commands
brew "lazygit"
# Postgres C API library
brew "libpq", link: true
# Language Server for the Lua language
brew "lua-language-server"
# Tool for linting and static analysis of Lua code
brew "luacheck"
# Macro processing language
brew "m4", link: true
# Package manager for the Lua programming language
brew "luarocks"
# Mac App Store command-line interface
brew "mas"
# Polyglot runtime manager (asdf rust clone)
brew "mise"
# Ambitious Vim-fork focused on extensibility and agility
brew "neovim", args: ["HEAD"]
brew "neovim"
# Search tool like grep and The Silver Searcher
brew "ripgrep"
# Safe, concurrent, practical language
brew "rust"
# Static analysis and lint tool, for (ba)sh scripts
brew "shellcheck"
# Autoformat shell script source code
Expand All @@ -61,6 +87,8 @@ brew "tldr"
brew "tmux"
# Display directories as trees (with optional color/HTML output)
brew "tree"
# Syntax-aware linter for prose
brew "vale"
# Vi 'workalike' with many additional features
brew "vim"
# Vim script Language Lint
Expand All @@ -69,8 +97,6 @@ brew "vint"
brew "yt-dlp"
# Login to REA AWS console by switching roles
brew "reainternal/stable/aws-switch"
# Authenticate to REA AWS accounts
brew "reainternal/stable/rea-as"
# Password manager that keeps all passwords secure behind one password
cask "1password"
# Professional graphic design software
Expand All @@ -79,6 +105,8 @@ cask "affinity-designer"
cask "affinity-photo"
# Professional desktop publishing software
cask "affinity-publisher"
# GPU-accelerated terminal emulator
cask "alacritty"
# Application launcher and productivity software
cask "alfred"
# Application uninstaller
Expand All @@ -93,18 +121,18 @@ cask "bbedit"
cask "betterdisplay"
# Record and process your ideas
cask "bike"
# Opensource IDE for exploring and testing api's
cask "bruno"
# Free and open-source web browser
cask "chromium"
# Screen capturing tool
cask "cleanshot"
# The Ultimate Homebrew Companion
# GUI companion app for Homebrew
cask "cork"
# API documentation browser and code snippet manager
cask "dash"
# App to build and share containerised applications and microservices
cask "docker"
# Cross-platform Text Expander written in Rust
cask "espanso"
# Web browser
cask "firefox"
cask "font-fira-mono"
Expand All @@ -114,6 +142,7 @@ cask "font-ibm-plex-mono"
cask "font-input"
cask "font-intel-one-mono"
cask "font-jetbrains-mono"
cask "font-jetbrains-mono-nerd-font"
cask "font-monaspace"
cask "font-roboto-mono"
cask "font-source-code-pro"
Expand All @@ -127,20 +156,30 @@ cask "ia-presenter"
cask "iina"
# Tool to optimise images to a smaller size
cask "imageoptim"
# System monitoring app
cask "istat-menus"
# Terminal emulator as alternative to Apple's Terminal app
cask "iterm2"
# JetBrains tools manager
cask "jetbrains-toolbox"
# Menu bar manager
cask "jordanbaird-ice"
# Spot and merge differences in text and image files or folders
cask "kaleidoscope@2"
# Automation software
cask "keyboard-maestro"
# GPU-based terminal emulator
cask "kitty"
# Software for Logitech devices
cask "logi-options-plus"
cask "logi-options+"
# Optimise your webcam, headset, and Logi Dock for video meetings
cask "logitune"
# Web browser
# Multi-platform web browser
cask "microsoft-edge"
# Tool to create text-based art
cask "monodraw"
# Utility to move and zoom windows—on one display
cask "moom"
# Native code editor
cask "nova"
# WebKit based web browser
Expand All @@ -151,33 +190,53 @@ cask "pastebot"
cask "postico"
# HTTP client that helps testing and describing APIs
cask "rapidapi"
# Move and resize windows using keyboard shortcuts or snap areas
cask "rectangle"
# Drag-and-drop Git history editor
cask "retcon"
# Sound and audio controller
cask "soundsource"
# Window and tab manager
cask "tabtab"
# Tool to automate the insertion of frequently used text and graphics
cask "typinator"
# Open-source code editor
cask "visual-studio-code"
# GPU-accelerated cross-platform terminal emulator and multiplexer
cask "wezterm"
# REST, GraphQL and gRPC client
cask "yaak"
# Application for configuring any YubiKey
cask "yubico-yubikey-manager"
# Multiplayer code editor
cask "zed"
mas "1Password for Safari", id: 1569813296
mas "Actions", id: 1586435171
mas "Aiko", id: 1672085276
mas "Bear", id: 1091189122
mas "Boop", id: 1518425043
mas "Color Picker", id: 1545870783
mas "com.kagimacOS.Kagi-Search", id: 1622835804
mas "Dato", id: 1470584107
mas "GoodLinks", id: 1474335294
mas "Hand Mirror", id: 1502839586
mas "HEIC Converter", id: 1294126402
mas "Hush", id: 1544743900
mas "iA Writer", id: 775737590
mas "Microsoft To Do", id: 1274495053
mas "NepTunes", id: 1006739057
mas "NotePlan", id: 1505432629
mas "One Thing", id: 1604176982
mas "Online Check", id: 6504709660
mas "Pixelmator Pro", id: 1289583905
mas "Play", id: 1596506190
mas "Save to Reader", id: 1640236961
mas "Shareful", id: 1522267256
mas "Shortery", id: 1594183810
mas "Sofa", id: 1276554886
mas "Speediness", id: 1596706466
mas "TestFlight", id: 899247664
mas "Things", id: 904280696
mas "Trello", id: 1278508951
mas "Velja", id: 1607635845
mas "Wipr", id: 1320666476
mas "Wipr", id: 1662217862
mas "Xcode", id: 497799835
vscode "github.copilot"
vscode "github.copilot-chat"
Expand Down
4 changes: 4 additions & 0 deletions nvim/after/ftplugin/typescript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
" seems the best solution that doesn't involve a new plugin.
"
nnoremap <LocalLeader>f :silent %!npx prettier --stdin-filepath %<CR>
" Use treesitter for folding.
setlocal foldmethod=expr
setlocal foldexpr=v:lua.vim.treesitter.foldexpr()
2 changes: 1 addition & 1 deletion nvim/after/plugin/conform.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
typescript = { { "prettierd", "prettier" }, "eslint_d" },
typescript = { { "prettierd", "prettier", stop_after_first = true }, "eslint_d" },
},
}

Expand Down
1 change: 1 addition & 0 deletions nvim/after/plugin/lint.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require("lint").linters_by_ft = {
dockerfile = { "hadolint" },
lua = { "luacheck" },
typescript = { "eslint" },
}
Expand Down
2 changes: 1 addition & 1 deletion nvim/after/plugin/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lspconfig.lua_ls.setup({
Lua = {},
},
})
lspconfig.tsserver.setup({})
lspconfig.ts_ls.setup({})

-- Global mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
Expand Down
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/conform.nvim
Submodule conform.nvim updated 64 files
+3 −2 .envrc
+7 −1 .github/ISSUE_TEMPLATE/bug_report.yml
+0 −2 .github/workflows/tests.yml
+2 −0 .gitignore
+9 −0 .luarc.json
+112 −0 CHANGELOG.md
+28 −8 Makefile
+118 −52 README.md
+0 −2 doc/advanced_topics.md
+110 −39 doc/conform.txt
+133 −0 doc/debugging.md
+60 −34 doc/recipes.md
+3 −10 lua/conform/errors.lua
+1 −1 lua/conform/formatters/clang-format.lua
+10 −0 lua/conform/formatters/cljfmt.lua
+9 −0 lua/conform/formatters/commitmsgfmt.lua
+1 −1 lua/conform/formatters/dcm_format.lua
+35 −4 lua/conform/formatters/deno_fmt.lua
+4 −3 lua/conform/formatters/djlint.lua
+1 −0 lua/conform/formatters/docformatter.lua
+12 −0 lua/conform/formatters/doctoc.lua
+19 −11 lua/conform/formatters/injected.lua
+10 −0 lua/conform/formatters/kdlfmt.lua
+10 −0 lua/conform/formatters/kulala-fmt.lua
+8 −0 lua/conform/formatters/markdownfmt.lua
+0 −1 lua/conform/formatters/mix.lua
+10 −0 lua/conform/formatters/mojo_format.lua
+9 −0 lua/conform/formatters/nginxfmt.lua
+2 −2 lua/conform/formatters/nixfmt.lua
+10 −0 lua/conform/formatters/nufmt.lua
+2 −16 lua/conform/formatters/prettier.lua
+59 −16 lua/conform/formatters/prettierd.lua
+10 −0 lua/conform/formatters/python-ly.lua
+5 −1 lua/conform/formatters/shfmt.lua
+9 −0 lua/conform/formatters/sleek.lua
+2 −2 lua/conform/formatters/sqlfluff.lua
+11 −0 lua/conform/formatters/standard-clj.lua
+6 −2 lua/conform/formatters/stylelint.lua
+9 −0 lua/conform/formatters/superhtml.lua
+11 −0 lua/conform/formatters/syntax_tree.lua
+10 −5 lua/conform/formatters/trim_newlines.lua
+11 −5 lua/conform/formatters/trim_whitespace.lua
+10 −0 lua/conform/formatters/ufmt.lua
+4 −9 lua/conform/formatters/xmlformat.lua
+9 −0 lua/conform/formatters/xmlformatter.lua
+9 −0 lua/conform/formatters/xmlstarlet.lua
+9 −0 lua/conform/formatters/ziggy.lua
+9 −0 lua/conform/formatters/ziggy_schema.lua
+23 −27 lua/conform/health.lua
+218 −77 lua/conform/init.lua
+1 −1 lua/conform/log.lua
+20 −6 lua/conform/lsp_format.lua
+86 −73 lua/conform/runner.lua
+48 −2 lua/conform/types.lua
+44 −7 lua/conform/util.lua
+7 −7 scripts/generate.py
+9 −3 scripts/options_doc.lua
+4 −0 scripts/requirements.txt
+2 −0 tests/api_spec.lua
+148 −0 tests/formatters/prettierd_spec.lua
+1 −1 tests/fuzzer_spec.lua
+0 −5 tests/injected_spec.lua
+25 −32 tests/runner_spec.lua
+72 −0 tests/util_spec.lua
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/dispatch
Submodule dispatch updated from 4c695b to a2ff28
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/nvim-lint
Submodule nvim-lint updated 88 files
+9 −1 .busted
+13 −7 .github/workflows/tests.yml
+1 −0 .gitignore
+5 −2 .luarc.json
+59 −14 README.md
+179 −0 doc/lint.txt
+168 −128 lua/lint.lua
+12 −0 lua/lint/linters/bash.lua
+1 −1 lua/lint/linters/checkstyle.lua
+52 −0 lua/lint/linters/clippy.lua
+25 −5 lua/lint/linters/codespell.lua
+14 −6 lua/lint/linters/credo.lua
+1 −1 lua/lint/linters/cspell.lua
+26 −0 lua/lint/linters/eugene.lua
+37 −0 lua/lint/linters/gawk.lua
+27 −0 lua/lint/linters/hledger.lua
+12 −0 lua/lint/linters/ksh.lua
+12 −0 lua/lint/linters/luac.lua
+11 −9 lua/lint/linters/markdownlint.lua
+6 −3 lua/lint/linters/mypy.lua
+2 −2 lua/lint/linters/phpinsights.lua
+1 −1 lua/lint/linters/protolint.lua
+8 −2 lua/lint/linters/pylint.lua
+40 −9 lua/lint/linters/revive.lua
+19 −0 lua/lint/linters/slang.lua
+79 −0 lua/lint/linters/snakemake.lua
+12 −0 lua/lint/linters/sphinx-lint.lua
+5 −1 lua/lint/linters/sqlfluff.lua
+17 −0 lua/lint/linters/svlint.lua
+11 −0 lua/lint/linters/systemd-analyze.lua
+1 −0 lua/lint/linters/tidy.lua
+2 −2 lua/lint/linters/verilator.lua
+10 −0 lua/lint/linters/yq.lua
+55 −12 lua/lint/parser.lua
+33 −0 nvim-lint-scm-1.rockspec
+0 −0 spec/ameba_spec.lua
+0 −0 spec/ansible_lint_spec.lua
+6 −0 spec/both.py
+0 −0 spec/checkpatch_spec.lua
+12 −1 spec/checkstyle_spec.lua
+21 −0 spec/codespell_spec.lua
+0 −0 spec/commitlint_spec.lua
+2 −2 spec/compiler_spec.lua
+0 −0 spec/cppcheck_spec.lua
+13 −12 spec/credo_spec.lua
+0 −0 spec/cspell_spec.lua
+0 −0 spec/deadnix_spec.lua
+0 −0 spec/eslint_d_spec.lua
+59 −0 spec/hledger_spec.lua
+0 −0 spec/hlint_spec.lua
+0 −0 spec/jsonlint_spec.lua
+0 −0 spec/lint_spec.lua
+0 −0 spec/loop.py
+33 −0 spec/markdownlint_spec.lua
+0 −0 spec/markuplint_spec.lua
+0 −0 spec/minimal.vim
+0 −0 spec/mlint_spec.lua
+14 −2 spec/mypy_spec.lua
+0 −0 spec/oelint-adv_spec.lua
+54 −0 spec/parser_spec.lua
+0 −0 spec/php_spec.lua
+0 −0 spec/phpcs_spec.lua
+0 −0 spec/phpmd_spec.lua
+0 −0 spec/phpstan_spec.lua
+0 −0 spec/prisma-lint_spec.lua
+0 −0 spec/pycodestyle_lint_spec.lua
+0 −0 spec/pydocstyle_spec.lua
+0 −0 spec/pylint_spec.lua
+0 −0 spec/rpmspec_spec.lua
+0 −0 spec/rubocop_spec.lua
+0 −0 spec/ruby_spec.lua
+0 −0 spec/saltlint_spec.lua
+101 −0 spec/snakemake_spec.lua
+0 −0 spec/snyk_iac_spec.lua
+35 −0 spec/sphinx-lint_spec.lua
+5 −4 spec/sqlfluff_spec.lua
+0 −0 spec/staticcheck_spec.lua
+0 −0 spec/swiftlint_spec.lua
+0 −0 spec/systemdlint_spec.lua
+0 −0 spec/tflint_spec.lua
+0 −0 spec/tfsec_spec.lua
+0 −0 spec/trivy_spec.lua
+0 −0 spec/twigcs_spec.lua
+0 −0 spec/util_spec.lua
+0 −0 spec/vale_spec.lua
+4 −3 spec/verilator_spec.lua
+0 −6 tests/both.py
+0 −33 tests/markdownlint_spec.lua
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/nvim-lspconfig
Submodule nvim-lspconfig updated 388 files
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/nvim-treesitter
Submodule nvim-treesitter updated 307 files
2 changes: 1 addition & 1 deletion nvim/pack/bundle/start/projectionist
Submodule projectionist updated from 3736bd to 104394

0 comments on commit ab8c526

Please sign in to comment.