Compare commits

..

13 Commits

Author SHA1 Message Date
ae8390c431 🔧 doom: now with llm tool 2025-05-09 17:27:20 -04:00
edee508882 🔧 add zed config 2025-05-07 16:27:18 -04:00
6185de0a49 🔧 k8s context in prompt 2025-04-08 19:53:05 -04:00
48e6614a51 🔧 zsh: add python plugin 2025-04-02 21:19:57 -04:00
2a06d68dfd 🔧 emacs config updates 2025-03-29 13:02:55 -04:00
3eb47b35d5 🎨 clean up formatting 2025-03-29 12:54:45 -04:00
58323fbb9d 🔧 git config tweaks
via https://blog.gitbutler.com/how-git-core-devs-configure-git/
2025-03-24 19:05:03 -07:00
55c50243e1 🔧 zsh: ghostty integration 2025-02-15 17:37:41 -05:00
4b1c957f9c 🔥 tmux config cleanup 2025-02-15 17:37:16 -05:00
4493fd1a63 🔧 omz plugin now supports asdf 0.16 2025-02-13 22:32:27 -05:00
f7c5c699b5 🔧 asdf 0.16 config 2025-02-07 13:56:40 -05:00
582e057a88 🔧 ghostty: change quick terminal key 2025-02-01 21:23:16 -05:00
b5472e52f2 ghostty: quick terminal 2025-01-31 12:21:56 -05:00
10 changed files with 149 additions and 85 deletions

View File

@ -30,9 +30,9 @@
;; If you use `org' and don't want your org files in the default location below, ;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads! ;; change `org-directory'. It must be set before org loads!
(setq deft-directory "~/Sync/Notes" ;; (setq deft-directory "~/Sync/Notes"
deft-default-extension "md" ;; deft-default-extension "md"
deft-recursive t) ;; deft-recursive t)
;; This determines the style of line numbers in effect. If set to `nil', line ;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'. ;; numbers are disabled. For relative line numbers, set this to `relative'.
@ -61,6 +61,12 @@
;; haskell ;; haskell
(setq lsp-haskell-formatting-provider "stylish-haskell") (setq lsp-haskell-formatting-provider "stylish-haskell")
;; llm
(gptel-make-ollama "Ollama"
:host "localhost:11434"
:stream t
:models '(mistral:latest))
;; nix-mode ;; nix-mode
(with-eval-after-load 'lsp-mode (with-eval-after-load 'lsp-mode
(lsp-register-client (lsp-register-client
@ -69,5 +75,13 @@
:priority 0 :priority 0
:server-id 'nixd))) :server-id 'nixd)))
;; obsidian
(use-package obsidian
:config
(global-obsidian-mode t)
:custom
(obsidian-directory "~/Documents/Notes")
(markdown-enable-wiki-links t))
;; web-mode ;; web-mode
(add-to-list 'auto-mode-alist '("\\.njk" . web-mode)) (add-to-list 'auto-mode-alist '("\\.njk" . web-mode))

View File

@ -1,12 +1,11 @@
;;; init.el -*- lexical-binding: t; -*- ;;; init.el -*- lexical-binding: t; -*-
;;;
;; This file controls what Doom modules are enabled and what order they load ;; This file controls what Doom modules are enabled and what order they load
;; in. Remember to run 'doom sync' after modifying it! ;; in. Remember to run 'doom sync' after modifying it!
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's ;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
;; documentation. There you'll find a "Module Index" link where you'll find ;; documentation. There you'll find a link to Doom's Module Index where all
;; a comprehensive list of Doom's modules and what flags they support. ;; of our modules are listed, including what flags they support.
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or ;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
;; 'C-c c k' for non-vim users) to view its documentation. This works on ;; 'C-c c k' for non-vim users) to view its documentation. This works on
@ -16,25 +15,26 @@
;; directory (for easy access to its source code). ;; directory (for easy access to its source code).
(doom! :input (doom! :input
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
;;chinese ;;chinese
;;japanese ;;japanese
;;layout ; auie,ctsrnm is the superior home row ;;layout ; auie,ctsrnm is the superior home row
:completion :completion
company ; the ultimate code completion backend ;; company ; the ultimate code completion backend
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life ;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine... ;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life ;;ivy ; a search engine for love and life
vertico ; the search engine of the future vertico ; the search engine of the future
:ui :ui
deft ; notational velocity for Emacs ;;deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs
(emoji +unicode) ; 🙂 (emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra
;;indent-guides ; highlighted indent columns ;;indent-guides ; highlighted indent columns
ligatures ; ligatures and symbols to make your code pretty again ligatures ; ligatures and symbols to make your code pretty again
minimap ; show a map of the code on the side minimap ; show a map of the code on the side
@ -69,6 +69,7 @@
:emacs :emacs
dired ; making dired pretty [functional] dired ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent electric ; smarter, keyword-based electric-indent
;;eww ; the internet is gross
;;ibuffer ; interactive buffer management ;;ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree vc ; version-control and Emacs, sitting in a tree
@ -81,11 +82,13 @@
:checkers :checkers
syntax ; tasing you for every semicolon you forget syntax ; tasing you for every semicolon you forget
;;spell ; tasing you for misspelling mispelling ;;(spell +flyspell) ; tasing you for misspelling mispelling
;;grammar ; tasing grammar mistake every you make ;;grammar ; tasing grammar mistake every you make
:tools :tools
;;ansible ;;ansible
;;biblio ; Writes a PhD for you (citation needed)
;;collab ; buffers with friends
;;debugger ; FIXME stepping through code, to help you add bugs ;;debugger ; FIXME stepping through code, to help you add bugs
direnv direnv
docker docker
@ -93,26 +96,26 @@
;;ein ; tame Jupyter notebooks with emacs ;;ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls) (eval +overlay) ; run code, run (also, repls)
lookup ; navigate your code and its documentation lookup ; navigate your code and its documentation
lsp llm ; when I said you needed friends, I didn't mean...
lsp ; M-x vscode
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
make ; run make tasks from Emacs ;;make ; run make tasks from Emacs
;;pass ; password manager for nerds ;;pass ; password manager for nerds
;;pdf ; pdf enhancements ;;pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
terraform ; infrastructure as code terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux ;;tmux ; an API for interacting with tmux
tree-sitter ; syntax and parsing, sitting in a tree... tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp ;;upload ; map local to remote projects via ssh/ftp
:os :os
(:if IS-MAC macos) ; improve compatibility with macOS (:if (featurep :system 'macos) macos) ; improve compatibility with macOS
;;tty ; improve the terminal Emacs experience ;;tty ; improve the terminal Emacs experience
:lang :lang
;;agda ; types of types of types of types... ;;agda ; types of types of types of types...
;;cc ; C/C++/Obj-C madness ;;beancount ; mind the GAAP
;;(cc +lsp) ; C > C++ == 1
;;clojure ; java with a lisp ;;clojure ; java with a lisp
;;common-lisp ; if you've seen one lisp, you've seen them all ;;common-lisp ; if you've seen one lisp, you've seen them all
;;coq ; proofs-as-programs ;;coq ; proofs-as-programs

View File

@ -3,50 +3,50 @@
;; To install a package with Doom you must declare them here and run 'doom sync' ;; To install a package with Doom you must declare them here and run 'doom sync'
;; on the command line, then restart Emacs for the changes to take effect -- or ;; on the command line, then restart Emacs for the changes to take effect -- or
;; use 'M-x doom/reload'.
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: ;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package) ;; (package! some-package)
(package! obsidian)
(package! wakatime-mode) (package! wakatime-mode)
;; To install a package directly from a remote git repo, you must specify a ;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here: ;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format ;; https://github.com/radian-software/straight.el#the-recipe-format
;(package! another-package ;; (package! another-package
; :recipe (:host github :repo "username/repo")) ;; :recipe (:host github :repo "username/repo"))
;; If the package you are trying to install does not contain a PACKAGENAME.el ;; If the package you are trying to install does not contain a PACKAGENAME.el
;; file, or is located in a subdirectory of the repo, you'll need to specify ;; file, or is located in a subdirectory of the repo, you'll need to specify
;; `:files' in the `:recipe': ;; `:files' in the `:recipe':
;(package! this-package ;; (package! this-package
; :recipe (:host github :repo "username/repo" ;; :recipe (:host github :repo "username/repo"
; :files ("some-file.el" "src/lisp/*.el"))) ;; :files ("some-file.el" "src/lisp/*.el")))
;; If you'd like to disable a package included with Doom, you can do so here ;; If you'd like to disable a package included with Doom, you can do so here
;; with the `:disable' property: ;; with the `:disable' property:
;(package! builtin-package :disable t) ;; (package! builtin-package :disable t)
;; You can override the recipe of a built in package without having to specify ;; You can override the recipe of a built in package without having to specify
;; all the properties for `:recipe'. These will inherit the rest of its recipe ;; all the properties for `:recipe'. These will inherit the rest of its recipe
;; from Doom or MELPA/ELPA/Emacsmirror: ;; from Doom or MELPA/ELPA/Emacsmirror:
;(package! builtin-package :recipe (:nonrecursive t)) ;; (package! builtin-package :recipe (:nonrecursive t))
;(package! builtin-package-2 :recipe (:repo "myfork/package")) ;; (package! builtin-package-2 :recipe (:repo "myfork/package"))
;; Specify a `:branch' to install a package from a particular branch or tag. ;; Specify a `:branch' to install a package from a particular branch or tag.
;; This is required for some packages whose default branch isn't 'master' (which ;; This is required for some packages whose default branch isn't 'master' (which
;; our package manager can't deal with; see raxod502/straight.el#279) ;; our package manager can't deal with; see radian-software/straight.el#279)
;(package! builtin-package :recipe (:branch "develop")) ;; (package! builtin-package :recipe (:branch "develop"))
;; Use `:pin' to specify a particular commit to install. ;; Use `:pin' to specify a particular commit to install.
;(package! builtin-package :pin "1a2b3c4d5e") ;; (package! builtin-package :pin "1a2b3c4d5e")
;; Doom's packages are pinned to a specific commit and updated from release to ;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages... ;; release. The `unpin!' macro allows you to unpin single packages...
;(unpin! pinned-package) ;; (unpin! pinned-package)
;; ...or multiple packages ;; ...or multiple packages
;(unpin! pinned-package another-pinned-package) ;; (unpin! pinned-package another-pinned-package)
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t) ;; (unpin! t)

View File

@ -25,3 +25,5 @@ foreground = f8f8f2
cursor-color = f8f8f2 cursor-color = f8f8f2
selection-background = 44475a selection-background = 44475a
selection-foreground = f8f8f2 selection-foreground = f8f8f2
keybind = global:ctrl+escape=toggle_quick_terminal

View File

@ -5,12 +5,22 @@
smu = "submodule update --init --recursive" smu = "submodule update --init --recursive"
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
up = "pull --rebase --autostash" up = "pull --rebase --autostash"
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d" cleanup = "!git branch -vv|grep ': gone]'|awk '{print $1}'|xargs git branch -D"
[commit] [commit]
gpgsign = true gpgsign = true
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[fetch]
prune = true
pruneTags = true
all = true
[github] [github]
user = "walkah" user = "walkah"
@ -26,6 +36,11 @@
[pull] [pull]
rebase = true rebase = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[rebase] [rebase]
autoStash = true autoStash = true

View File

@ -13,5 +13,8 @@ disabled=true
ssh_only = false ssh_only = false
format = "[$hostname]($style):" format = "[$hostname]($style):"
[kubernetes]
disabled = false
[username] [username]
format = "[$user]($style)@" format = "[$user]($style)@"

View File

@ -4,8 +4,6 @@ set -g prefix C-o
set -g mouse on set -g mouse on
set -g set-titles on set -g set-titles on
set -g set-titles-string "[#S] #W@#h (#I)" set -g set-titles-string "[#S] #W@#h (#I)"
set -g status-right ""
set -g default-terminal "screen-256color"
bind-key X kill-session bind-key X kill-session

View File

@ -0,0 +1,37 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"features": {
"edit_prediction_provider": "zed"
},
"agent": {
"default_model": {
"provider": "copilot_chat",
"model": "claude-3-7-sonnet"
},
"version": "2"
},
"auto_install_extensions": {
"dockerfile": true,
"docker-compose": true,
"dracula": true,
"html": true,
"nix": true,
"terraform": true
},
"theme": "Dracula",
"buffer_font_family": "JetBrainsMono Nerd Font",
"buffer_font_size": 14,
"format_on_save": "on",
"languages": {
"Nix": {
"language_servers": ["nixd", "!nil"]
}
}
}

View File

@ -4,6 +4,7 @@ export ZSH=$HOME/.oh-my-zsh
plugins=( plugins=(
asdf asdf
aws aws
bgnotify
command-not-found command-not-found
direnv direnv
docker docker
@ -14,6 +15,7 @@ plugins=(
git git
github github
mix mix
python
tmux tmux
zsh-autosuggestions zsh-autosuggestions
) )
@ -26,6 +28,9 @@ export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
zstyle ':omz:plugins:eza' 'git-status' yes zstyle ':omz:plugins:eza' 'git-status' yes
zstyle ':omz:plugins:eza' 'header' yes zstyle ':omz:plugins:eza' 'header' yes
# python plugin config
export PYTHON_AUTO_VRUN=true
# OH MY ZSH! # OH MY ZSH!
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
@ -36,3 +41,7 @@ eval "$(starship init zsh)"
if command -v bat &> /dev/null; then if command -v bat &> /dev/null; then
alias -- cat=bat alias -- cat=bat
fi fi
if [[ -n $GHOSTTY_RESOURCES_DIR ]]; then
source "$GHOSTTY_RESOURCES_DIR"/shell-integration/zsh/ghostty-integration
fi

37
flake.lock generated
View File

@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732025103, "lastModified": 1746798521,
"narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=", "narHash": "sha256-axfz/jBEH9XHpS7YSumstV7b2PrPf7L8bhWUtLBv3nA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a46e702093a5c46e192243edbd977d5749e7f294", "rev": "e95a7c5b6fa93304cd2fd78cf676c4f6d23c422c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -77,11 +77,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731890469, "lastModified": 1746576598,
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=", "narHash": "sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5083ec887760adfe12af64830a66807423a859a7", "rev": "b3582c75c7f21ce0b429898980eddbbf05c68e55",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -91,37 +91,20 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": {
"locked": {
"lastModified": 1730741070,
"narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"gitignore": "gitignore", "gitignore": "gitignore",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1732021966, "lastModified": 1746537231,
"narHash": "sha256-mnTbjpdqF0luOkou8ZFi2asa1N3AA2CchR/RqCNmsGE=", "narHash": "sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS+noCWo=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "rev": "fa466640195d38ec97cf0493d6d6882bc4d14969",
"type": "github" "type": "github"
}, },
"original": { "original": {