misc tweaks; cleanup irrelevant

This commit is contained in:
turtlebasket
2026-02-19 17:52:31 -08:00
parent 5c5128be85
commit c33c7583f1
18 changed files with 107 additions and 2928 deletions

View File

@@ -3,8 +3,8 @@
## Contents
- [Configs](./config/)
- [Old setup stuff](./setup/)
- [Misc. scripts](./scripts/)
- [Old setup stuff](./setup/)
## Software List
@@ -15,12 +15,11 @@
- [MiddleClick](https://github.com/artginzburg/MiddleClick-BigSur)
- [LinearMouse](https://linearmouse.org/)
- [OpenInTerminal](https://github.com/Ji4n1ng/OpenInTerminal)
- [Raycast](https://www.raycast.com/)
### Windows
- [AutoHotKey v1](https://www.autohotkey.com/download/1.1/)
- ShareX
- Powershell Core
- Windows Terminal
- WSL (native feature)

View File

@@ -1,4 +1,4 @@
// Place your key bindings in this file to override the defaultsauto[]
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+1",
@@ -140,6 +140,10 @@
"key": "alt+cmd+0",
"command": "workbench.action.focusLastEditorGroup"
},
{
"key": "cmd+h",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "cmd+g",
"command": "git-graph.view"
@@ -212,8 +216,45 @@
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "cmd+h",
"command": "-editor.action.simpleInlineDiffs.rejectAll",
"when": "editorTextFocus && hasDisplayedSimpleDiff"
"key": "shift+cmd+i",
"command": "composerMode.chat"
},
{
"key": "shift+cmd+i",
"command": "-composer.newAgentChat"
},
{
"key": "cmd+; shift+cmd+i",
"command": "-testing.toggleInlineCoverage"
},
{
"key": "shift+cmd+i",
"command": "-workbench.panel.chatEditing",
"when": "workbench.panel.chat.view.edits.active"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "activeEditorIsReviewChanges || editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-planEditor.findPrevious",
"when": "markdownPlanEditorActive"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "shift+cmd+g",
"command": "workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active"
}
]

View File

@@ -1,6 +0,0 @@
## Installation
```
cp ./*.el ~/.doom.d/
```

View File

@@ -1,93 +0,0 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
(setq user-full-name "John Doe"
user-mail-address "john@doe.com")
;; Doom exposes five (optional) variables for controlling fonts in Doom:
;;
;; - `doom-font' -- the primary font to use
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
;; - `doom-unicode-font' -- for unicode glyphs
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
;;
;; See 'C-h v doom-font' for documentation and more examples of what they
;; accept. For example:
;;
;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
;;
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
;; refresh your font settings. If Emacs still can't find your font, it likely
;; wasn't installed correctly. Font issues are rarely Doom issues!
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'doom-monokai-spectrum)
;; 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'.
(setq display-line-numbers-type t)
;; 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!
(setq org-directory "~/org/")
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;
;; (after! PACKAGE
;; (setq x y))
;;
;; The exceptions to this rule:
;;
;; - Setting file/directory variables (like `org-directory')
;; - Setting variables which explicitly tell you to set them before their
;; package is loaded (see 'C-h v VARIABLE' to look up their documentation).
;; - Setting doom variables (which start with 'doom-' or '+').
;;
;; Here are some additional functions/macros that will help you configure Doom.
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package!' for configuring packages
;; - `after!' for running code after a package has loaded
;; - `add-load-path!' for adding directories to the `load-path', relative to
;; this file. Emacs searches the `load-path' when you load packages with
;; `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
;; This will open documentation for it, including demos of how they are used.
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
;; etc).
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;; treemacs extension
(setq treemacs-text-scale 0.7)
(setq treemacs-git-mode 'deferred)
(with-eval-after-load 'treemacs
(treemacs-display-current-project-exclusively)
(setq treemacs-project-follow-mode :true)
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action)) ;; single click to open tree nodes
;; code minimap
;; (setq minimap-move-overlay-mouse [mouse-1])
;; Rust config
;; https://github.com/doomemacs/doomemacs/blob/develop/modules/lang/rust/README.org#enable-rls-by-default
;; (setq rustic-lsp-server 'rust-analyzer)
(setq rustic-lsp-server 'rls)
(setq rustic-lsp-client 'eglot)

View File

@@ -1,14 +0,0 @@
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("c4063322b5011829f7fdd7509979b5823e8eea2abf1fe5572ec4b7af1dd78519" "6f4421bf31387397f6710b6f6381c448d1a71944d9e9da4e0057b3fe5d6f2fad" "1278c5f263cdb064b5c86ab7aa0a76552082cf0189acf6df17269219ba496053" "e19ac4ef0f028f503b1ccafa7c337021834ce0d1a2bca03fcebc1ef635776bea" "4a5aa2ccb3fa837f322276c060ea8a3d10181fecbd1b74cb97df8e191b214313" "76ed126dd3c3b653601ec8447f28d8e71a59be07d010cd96c55794c3008df4d7" "e8df30cd7fb42e56a4efc585540a2e63b0c6eeb9f4dc053373e05d774332fc13" "4b6b6b0a44a40f3586f0f641c25340718c7c626cbf163a78b5a399fbe0226659" "23c806e34594a583ea5bbf5adf9a964afe4f28b4467d28777bcba0d35aa0872e" "7a7b1d475b42c1a0b61f3b1d1225dd249ffa1abb1b7f726aec59ac7ca3bf4dae" "8146edab0de2007a99a2361041015331af706e7907de9d6a330a3493a541e5a6" "4699e3a86b1863bbc695236036158d175a81f0f3ea504e2b7c71f8f7025e19e3" "1bddd01e6851f5c4336f7d16c56934513d41cc3d0233863760d1798e74809b4b" "a0be7a38e2de974d1598cf247f607d5c1841dbcef1ccd97cded8bea95a7c7639" "028c226411a386abc7f7a0fba1a2ebfae5fe69e2a816f54898df41a6a3412bb5" "6c98bc9f39e8f8fd6da5b9c74a624cbb3782b4be8abae8fd84cbc43053d7c175" "84b14a0a41bb2728568d40c545280dbe7d6891221e7fbe7c2b1c54a3f5959289" "1d44ec8ec6ec6e6be32f2f73edf398620bb721afeed50f75df6b12ccff0fbb15" "1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf" "835868dcd17131ba8b9619d14c67c127aa18b90a82438c8613586331129dda63" default))
'(package-selected-packages '(rustic eglot yasnippet)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

View File

@@ -1,193 +0,0 @@
;;; init.el -*- lexical-binding: t; -*-
;; This file controls what Doom modules are enabled and what order they load
;; 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
;; documentation. There you'll find a link to Doom's Module Index where all
;; 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
;; 'C-c c k' for non-vim users) to view its documentation. This works on
;; flags as well (those symbols that start with a plus).
;;
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
;; directory (for easy access to its source code).
(doom! :input
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
;;chinese
;;japanese
;;layout ; auie,ctsrnm is the superior home row
:completion
company ; the ultimate code completion backend
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life
vertico ; the search engine of the future
:ui
;;deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra
;;indent-guides ; highlighted indent columns
;;ligatures ; ligatures and symbols to make your code pretty again
minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API
;;nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim
ophints ; highlight the region an operation acts on
(popup +defaults) ; tame sudden yet inevitable temporary windows
;;tabs ; a tab bar for Emacs
treemacs ; a project drawer, like neotree but cooler
;;unicode ; extended unicode support for various languages
vc-gutter ; vcs diff in the fringe
vi-tilde-fringe ; fringe tildes to mark beyond EOB
;;window-select ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
;;zen ; distraction-free coding or writing
:editor
(evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding
;;(format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ; editing in many places at once
;;objed ; text object editing for the innocent
;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates
snippets ; my elves. They type so I don't have to
;;word-wrap ; soft wrapping with language-aware indent
:emacs
dired ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree
:term
;;eshell ; the elisp shell that works everywhere
;;shell ; simple shell REPL for Emacs
;;term ; basic terminal emulator for Emacs
vterm ; the best terminal emulation in Emacs
:checkers
syntax ; tasing you for every semicolon you forget
;;(spell +flyspell) ; tasing you for misspelling mispelling
;;grammar ; tasing grammar mistake every you make
:tools
;;ansible
;;biblio ; Writes a PhD for you (citation needed)
;;debugger ; FIXME stepping through code, to help you add bugs
;;direnv
;;docker
;;editorconfig ; let someone else argue about tabs vs spaces
;;ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
lsp ; M-x vscode
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs
;;pass ; password manager for nerds
pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;upload ; map local to remote projects via ssh/ftp
:os
(:if IS-MAC macos) ; improve compatibility with macOS
;;tty ; improve the terminal Emacs experience
:lang
;;agda ; types of types of types of types...
;;beancount ; mind the GAAP
;;(cc +lsp) ; C > C++ == 1
clojure ; java with a lisp
;;common-lisp ; if you've seen one lisp, you've seen them all
;;coq ; proofs-as-programs
;;crystal ; ruby at the speed of c
;;csharp ; unity, .NET, and mono shenanigans
data ; config/data formats
;;(dart +flutter) ; paint ui and not much else
;;dhall
;;elixir ; erlang done right
;;elm ; care for a cup of TEA?
emacs-lisp ; drown in parentheses
;;erlang ; an elegant language for a more civilized age
;;ess ; emacs speaks statistics
;;factor
;;faust ; dsp, but you get to keep your soul
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
;;fsharp ; ML stands for Microsoft's Language
;;fstar ; (dependent) types and (monadic) effects and Z3
;;gdscript ; the language you waited for
;;(go +lsp) ; the hipster dialect
;;(graphql +lsp) ; Give queries a REST
;;(haskell +lsp) ; a language that's lazier than I am
;;hy ; readability of scheme w/ speed of python
;;idris ; a language you can depend on
;;json ; At least it ain't XML
;;(java +lsp) ; the poster child for carpal tunnel syndrome
javascript ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script)
latex ; writing papers in Emacs has never been so fun
;;lean ; for folks with too much to prove
;;ledger ; be audit you can be
lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore
nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
org ; organize your plain life in plain text
;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional
;;python ; beautiful is better than ugly
;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs
;;raku ; the artist formerly known as perl6
;;rest ; Emacs as a REST client
;;rst ; ReST in peace
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good
;;(scheme +guile) ; a fully conniving family of lisps
sh ; she sells {ba,z,fi}sh shells on the C xor
;;sml
;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
web ; the tubes
;;yaml ; JSON, but readable
;;zig ; C, but simpler
:email
;;(mu4e +org +gmail)
;;notmuch
;;(wanderlust +gmail)
:app
;;calendar
;;emms
;;everywhere ; *leave* Emacs!? You must be joking
;;irc ; how neckbeards socialize
;;(rss +org) ; emacs as an RSS reader
;;twitter ; twitter client https://twitter.com/vnought
:config
;;literate
(default +bindings +smartparens))

View File

@@ -1,50 +0,0 @@
;; -*- no-byte-compile: t; -*-
;;; $DOOMDIR/packages.el
;; 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
;; use 'M-x doom/reload'.
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format
;(package! another-package
; :recipe (:host github :repo "username/repo"))
;; 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
;; `:files' in the `:recipe':
;(package! this-package
; :recipe (:host github :repo "username/repo"
; :files ("some-file.el" "src/lisp/*.el")))
;; If you'd like to disable a package included with Doom, you can do so here
;; with the `:disable' property:
;(package! builtin-package :disable t)
;; 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
;; from Doom or MELPA/ELPA/Emacsmirror:
;(package! builtin-package :recipe (:nonrecursive t))
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
;; 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
;; our package manager can't deal with; see raxod502/straight.el#279)
;(package! builtin-package :recipe (:branch "develop"))
;; Use `:pin' to specify a particular commit to install.
;(package! builtin-package :pin "1a2b3c4d5e")
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...
;(unpin! pinned-package)
;; ...or multiple packages
;(unpin! pinned-package another-pinned-package)
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t)

View File

@@ -10,10 +10,14 @@ window-width = 162
window-height = 50
term = xterm-256color
# reduce dimming for unfocused split panes (1.0 disables dimming)
unfocused-split-opacity = 0.88
# USE PRERELEASE
# > While you can set this setting back to `stable` at any time, this will only take effect when a later stable
# > release is available. If you want to downgrade back to the previous stable release, you must re-download Ghostty.
auto-update-channel = tip
auto-update = off
# window-inherit-working-directory = false
@@ -32,4 +36,3 @@ keybind = cmd+b>l=goto_split:right
keybind = cmd+b>h=goto_split:left
keybind = cmd+b>k=goto_split:up
keybind = cmd+b>j=goto_split:down

File diff suppressed because it is too large Load Diff

View File

@@ -1,166 +0,0 @@
" Win behavior
" source $VIMRUNTIME/mswin.vim
" behave mswin
" Window height
" set lines=32 columns=110
" Preferences
set mouse=a
set encoding=utf-8
set autochdir
set shiftwidth=4
set tabstop=4
set linebreak
set breakindent
set autoindent
set wrap
set nobinary
set relativenumber
syntax on
" Aliases
cnoreabbrev ge browse confirm e
cnoreabbrev ! aliasrun
" Map leader key to spacebar (like Doom Emacs)
let mapleader = " "
" Vim Plug Plugins
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'mangeshrex/everblush.vim'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v1.*'}
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'jiangmiao/auto-pairs'
Plug 'dhruvasagar/vim-table-mode'
" Svelte
" Plug 'othree/html5.vim'
" Plug 'pangloss/vim-javascript'
" Plug 'evanleck/vim-svelte', {'branch': 'main'}
call plug#end()
" Lua Plugins
lua require('plugins')
" Theming
set termguicolors
set t_Co=256
set background=dark
colorscheme everblush
let g:airline_powerline_fonts = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" Neovide theming
if exists("g:neovide")
set guifont=CaskaydiaCove\ Nerd\ Font:h12.5
endif
" Start up plugins
autocmd VimEnter * :TSEnable highlight
" Navigation & Shortcuts
" Open file tree
nnoremap <Leader>op :CHADopen<CR>
nnoremap <C-t> :CHADopen<CR>
" Toggle terminal buffer
nnoremap <Leader>ot :ToggleTerm<CR>
nnoremap <C-`> :ToggleTerm<CR>
tnoremap <C-`> <C-\><C-n>:ToggleTerm<CR>
" Force kill current buffer
nnoremap <Leader>bk :bp<bar>sp<bar>bn<bar>bd!<CR>
nnoremap <C-k> :bp<bar>sp<bar>bn<bar>bd!<CR>
" Close the current window
nnoremap <Leader>wd :close<CR>
nnoremap <Leader>wk :close<CR>
nnoremap <C-x> :close<CR>
nnoremap <C-w>d :close<CR>
" Close the current tab
nnoremap <Leader>td :tabclose<CR>
nnoremap <Leader>tk :tabclose<CR>
" Search for files
nnoremap <Leader><Leader> :Telescope find_files<CR>
nnoremap <Leader>ff :Telescope find_files<CR>
" Git status
nnoremap <Leader>gs :Telescope git_status<CR>
nnoremap <Leader>gc :Telescope git_commits<CR>
" map <Leader>bk :bd!<CR>
" Reload config
nnoremap <silent> <Leader>rr :source $MYVIMRC<cr>
" New buffer
nnoremap <Leader>bn :enew<CR>
nnoremap <Leader>bc :enew<CR>
nnoremap <C-b>n :enew<CR>
" Global file search
" nnoremap <silent> <Leader><Leader>
" Quit editor
nnoremap <silent> <Leader>qq :qa!<CR>
" Buffer switching
nnoremap <Leader>b1 :buffer 1<CR>
nnoremap <Leader>b2 :buffer 2<CR>
nnoremap <Leader>b3 :buffer 3<CR>
nnoremap <Leader>b4 :buffer 4<CR>
nnoremap <Leader>b5 :buffer 5<CR>
nnoremap <Leader>b6 :buffer 6<CR>
nnoremap <Leader>b7 :buffer 7<CR>
nnoremap <Leader>b8 :buffer 8<CR>
nnoremap <Leader>b9 :buffer 9<CR>
nnoremap <A-1> :buffer 1<CR>
nnoremap <A-2> :buffer 2<CR>
nnoremap <A-3> :buffer 3<CR>
nnoremap <A-4> :buffer 4<CR>
nnoremap <A-5> :buffer 5<CR>
nnoremap <A-6> :buffer 6<CR>
nnoremap <A-7> :buffer 7<CR>
nnoremap <A-8> :buffer 8<CR>
nnoremap <A-9> :buffer 9<CR>
nnoremap <C-l> :bnext<CR>
nnoremap <C-h> :bprev<CR>
" Tab switching
nnoremap <Leader>t1 1gt<CR>
nnoremap <Leader>t2 2gt<CR>
nnoremap <Leader>t3 3gt<CR>
nnoremap <Leader>t4 4gt<CR>
nnoremap <Leader>t5 5gt<CR>
nnoremap <Leader>t6 6gt<CR>
nnoremap <Leader>t7 7gt<CR>
nnoremap <Leader>t8 8gt<CR>
nnoremap <Leader>t9 9gt<CR>
nnoremap <C-S-l> :tabnext<CR>
nnoremap <C-S-h> :tabprev<CR>
" Configure coc.nvim
" let g:coc_node_path = trim(system('which node'))
let g:coc_node_path='/opt/homebrew/bin/node'
" Telescope.nvim options
" :Telescope |<tab>
" :Telescope find_files
" Pandoc file commands
" function! PandocCompileMd()
" nnoremap <Leader>pp !pandoc compile <CR>
" endfunction

View File

@@ -1,8 +0,0 @@
local use = require('packer').use
require('packer').startup(function()
use 'wbthomason/packer.nvim' -- Package manager
use 'neovim/nvim-lspconfig' -- Configurations for Nvim LSP
end)
require'lspconfig'.clangd.setup{}

View File

@@ -1,73 +0,0 @@
" Win behavior
" source $VIMRUNTIME/mswin.vim
" behave mswin
" Window height
" set lines=32 columns=110
" Preferences
set encoding=utf-8
set autochdir
set shiftwidth=4
set tabstop=4
set linebreak
set breakindent
set autoindent
set wrap
set nobinary
set relativenumber
syntax on
set belloff=all
set guifont=CaskaydiaCove\ Nerd\ Font:h12
" Aliases
cnoreabbrev ge browse confirm e
cnoreabbrev ! aliasrun
" Plugins
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'flazz/vim-colorschemes'
Plug 'tomlion/vim-solidity'
Plug 'zah/nim.vim'
Plug 'NLKNguyen/papercolortheme'
Plug 'ackyshake/VimCompletesMe'
Plug 'preservim/nerdtree'
call plug#end()
" Theming
set t_Co=256
set background=dark
colorscheme PaperColor
let g:airline_powerline_fonts = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" Navigation & Shortcuts
" NERDTree Stuff
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" Copy/paste stuff
" inoremap <C-c> "+y
" inoremap <C-v> <C-o>:"+p<CR>
" Tab stuff
nnoremap <A-1> 1gt
nnoremap <A-2> 2gt
nnoremap <A-3> 3gt
nnoremap <A-4> 4gt
nnoremap <A-5> 5gt
nnoremap <A-6> 6gt
nnoremap <A-7> 7gt
nnoremap <A-8> 8gt
nnoremap <A-9> 9gt
nnoremap <A-0> 10gt-

View File

@@ -1,76 +0,0 @@
" Win behavior
" source $VIMRUNTIME/mswin.vim
" behave mswin
" Window height
set lines=32 columns=110
" Preferences
set encoding=utf-8
set autochdir
set shiftwidth=4
set tabstop=4
set linebreak
set breakindent
set autoindent
set wrap
set conceallevel=0
set backspace=2
set backspace=indent,eol,start
set fileformat=unix
set fileformats=unix,dos
set nobinary
set relativenumber
syntax on
set shell=pwsh.exe
" Aliases
cnoreabbrev ge browse confirm e
cnoreabbrev ! aliasrun
" Plugins
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'preservim/nerdtree'
Plug 'flazz/vim-colorschemes'
Plug 'tomlion/vim-solidity'
Plug 'zah/nim.vim'
Plug 'ycm-core/YouCompleteMe'
Plug 'NLKNguyen/papercolor-theme'
" Plug 'vim-syntastic/syntastic'
call plug#end()
" Theming
set t_Co=256
set guifont=Cascadia_Code_PL:h9
set background=dark
colorscheme PaperColor
let g:airline_powerline_fonts = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" Hide GVim Elements
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L
set guioptions-=e
" Navigation & Shortcuts
" inoremap <C-c> "+y
" inoremap <C-v> <C-o>:"+p<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
nnoremap <A-1> 1gt
nnoremap <A-2> 2gt
nnoremap <A-3> 3gt
nnoremap <A-4> 4gt
nnoremap <A-5> 5gt
nnoremap <A-6> 6gt
nnoremap <A-7> 7gt
nnoremap <A-8> 8gt
nnoremap <A-9> 9gt
nnoremap <A-0> 10gt

View File

@@ -1,4 +1,4 @@
// Place your key bindings in this file to override the defaultsauto[]
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+1",
@@ -214,5 +214,47 @@
"key": "shift+cmd+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+cmd+i",
"command": "composerMode.chat"
},
{
"key": "shift+cmd+i",
"command": "-composer.newAgentChat"
},
{
"key": "cmd+; shift+cmd+i",
"command": "-testing.toggleInlineCoverage"
},
{
"key": "shift+cmd+i",
"command": "-workbench.panel.chatEditing",
"when": "workbench.panel.chat.view.edits.active"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "activeEditorIsReviewChanges || editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-planEditor.findPrevious",
"when": "markdownPlanEditorActive"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
},
{
"key": "shift+cmd+g",
"command": "workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active"
}
]

View File

@@ -1,6 +0,0 @@
wget https://dl.google.com/android/repository/commandlinetools-mac-9123335_latest.zip -O ~/Downloads/as-mac-cli-tools.zip
mkdir -p ~/opt

View File

@@ -1,19 +0,0 @@
#!/usr/bin/env python3
from concurrent.futures import ThreadPoolExecutor
from subprocess import run as srun
DEST="turtlebasket-gdrive:/macbook-air-m1"
paths=[
"Desktop"
"Documents/Personal Knowledge Base"
"Documents/Berkeley Notes"
]
with ThreadPoolExecutor(max_workers=4) as executor:
for path in paths:
fname = path.split("/")[-1]
srun("rclone", "sync",
path,
f'{DEST}/{fname}',
"--progress", "--rertries", 1, "--delete-excluded")

13
scripts/tmux2 Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# simple wrapper for tmux that creates a new session for current directory if one doesn't exist
# meant for scoping sessions by /Projects/<project-name>/
session="$(basename "$PWD")"
tmux has-session -t "$session" 2>/dev/null
if [[ $? -eq 0 ]]; then
exec tmux attach -t "$session"
else
exec tmux new -s "$session"
fi

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env bash
envr=~/Projects/env
mkdir -vp ~/.bin ~/Projects
echo 'export PATH="~/.bin:$PATH"' > ~/.bashrc
# nvim install
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
mv nvim.appimage ~/.bin/nvim
# nvim packer install
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
# dotfiles
git clone https://github.com/turtlebasket/env $envr
mkdir -p ~/.config/nvim
cp -v $envr/config/neovim/macos/init.lua ~/.config/nvim/init.lua