this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

idk some bullshit about amp

+129 -28
+4 -4
home/darwin/aerospace/config.toml
··· 90 90 alt-comma = 'layout accordion horizontal vertical' 91 91 92 92 # See: https://nikitabobko.github.io/AeroSpace/commands#focus 93 - alt-h = 'focus left' 94 - alt-j = 'focus down' 95 - alt-k = 'focus up' 96 - alt-l = 'focus right' 93 + # alt-h = 'focus left' 94 + # alt-j = 'focus down' 95 + # alt-k = 'focus up' 96 + # alt-l = 'focus right' 97 97 98 98 # See: https://nikitabobko.github.io/AeroSpace/commands#move 99 99 alt-shift-h = 'move left'
+3 -3
home/profiles/cli/default.nix
··· 249 249 tree = "ls --tree --icons"; 250 250 cat = "bat"; 251 251 unzip = "aunpack"; 252 - copy = "xclip -selection clipboard"; 253 - paste = "xclip -selection clipboard -o"; 252 + copy = if pkgs.stdenv.isDarwin then "pbcopy" else "xclip -selection clipboard"; 253 + paste = if pkgs.stdenv.isDarwin then "pbpaste" else "xclip -selection clipboard -o"; 254 254 rm = "echo USE TRASH, FOOL: trash "; 255 255 trash = "trash-put"; 256 256 make-secret = "< /dev/urandom \\tr -dc _A-Za-z0-9 | head -c \${1:-32};echo;"; ··· 303 303 orch = "ns override"; 304 304 nrb = '' 305 305 if [[ "$OSTYPE" == "darwin"* ]]; then 306 - cd ~/usr/helm && sudo darwin-rebuild switch --flake ".#Anishs-MacBook-Pro" && cd $OLDPWD 306 + cd ~/usr/helm && sudo darwin-rebuild switch --impure --flake ".#Anishs-MacBook-Pro" && cd $OLDPWD 307 307 else 308 308 cd /tmp && sudo nixos-rebuild switch --flake '/home/anish/usr/helm#curve' && cd $OLDPWD 309 309 fi
+1
home/profiles/kitty/kitty.conf
··· 9 9 confirm_os_window_close 0 10 10 enable_audio_bell no 11 11 hide_window_decorations titlebar-only 12 + macos_option_as_alt left 12 13 -- Allows zen-mode.nvim to increase font size 13 14 -- allow_remote_control socket-only 14 15 -- listen_on unix:/tmp/kitty
+9
home/profiles/nvim/amp-plugin.nix
··· 1 + { pkgs }: 2 + 3 + if pkgs.stdenv.isDarwin && builtins.pathExists /Users/anishlakhwara/usr/amp.nvim then 4 + pkgs.vimUtils.buildVimPlugin { 5 + pname = "amp-nvim"; 6 + version = "unstable"; 7 + src = /Users/anishlakhwara/usr/amp.nvim; 8 + } 9 + else null
+5
home/profiles/nvim/amp.lua
··· 1 + -- amp.nvim configuration 2 + require('amp').setup({ 3 + auto_start = true, 4 + log_level = "info" 5 + })
+28 -21
home/profiles/nvim/default.nix
··· 29 29 sha256 = "gMaS5YFi3+gmUIfkCMEt9vhm8XSgv54Cquv5+WCWeTo="; 30 30 }; 31 31 }; 32 - leap = pkgs.vimUtils.buildVimPlugin { 33 - name = "leap"; 34 - src = pkgs.fetchFromGitHub { 35 - owner = "ggandor"; 36 - repo = "leap.nvim"; 37 - rev = "1bb1fec369b1e9ae96e6ff1b829ea9272c51f844"; 38 - sha256 = "dH0v1D5q5OlMLA/omTDMb/taKyIgQ5VfVMYXJ609k/k="; 39 - }; 40 - }; 41 - nvim-navic = pkgs.vimUtils.buildVimPlugin { 42 - name = "nvim-navic"; 43 - src = pkgs.fetchFromGitHub { 44 - owner = "SmiteshP"; 45 - repo = "nvim-navic"; 46 - rev = "096b23e73c84a653fd317c0c10261875fa573a6d"; 47 - sha256 = "vX7ZVJxgatIicmijehtaRvyHxk1i4gFfXrbPM/+VoFc="; 48 - }; 49 - }; 50 32 my-which-key-nvim = pkgs.vimUtils.buildVimPlugin { 51 33 pname = "which-key.nvim"; 52 34 version = "2022-05-04"; ··· 108 90 sha256 = "czKjJgCpvRSdtR7rNGlJrluDgPIdx94KUyx33op5gdY="; 109 91 }; 110 92 }; 93 + gh-addressed = pkgs.vimUtils.buildVimPlugin { 94 + pname = "gh-addressed"; 95 + version = "2024-09-17"; 96 + src = pkgs.fetchFromGitHub { 97 + owner = "dlvhdr"; 98 + repo = "gh-addressed.nvim"; 99 + rev = "64c12f0f2a1d28afe53220da5fb86e1adb79be07"; 100 + sha256 = "0pxzq9jllw7rfspyy6j8dr464g0ph7xvh317l4iyva26ld8889mp"; 101 + }; 102 + doCheck = false; 103 + doInstallCheck = false; 104 + nvimRequireCheck = "none"; 105 + }; 106 + amp-nvim = import ./amp-plugin.nix { inherit pkgs; }; 111 107 }; 112 108 113 109 my-python-packages = python-packages: with python-packages; [ ··· 842 838 require("which-key").setup{} 843 839 require('leap').set_default_keymaps() 844 840 841 + ${lib.optionalString (customPlugins.amp-nvim != null) '' 842 + -- Setup amp.nvim 843 + require('amp').setup({ 844 + auto_start = true, 845 + log_level = "info" 846 + }) 847 + ''} 848 + 845 849 -- supercollider 846 850 local scnvim = require 'scnvim' 847 851 local map = scnvim.map ··· 967 971 vim.keymap.set({'n', 't'}, '<M-l>', '<CMD>NavigatorRight<CR>') 968 972 969 973 -- Disable Ctrl+V in nvim so Kitty can handle paste 970 - vim.keymap.set({'n', 'v', 'i'}, '<C-v>', '<Nop>', {noremap = true, silent = true}) 974 + vim.keymap.set({'v', 'i'}, '<C-v>', '<Nop>', {noremap = true, silent = true}) 971 975 972 976 -- Pane resizing with Alt+Shift+hjkl (to match tmux) 973 977 vim.keymap.set('n', '<M-S-h>', '<Cmd>vertical resize -2<CR>', {silent = true}) ··· 1083 1087 1084 1088 # experimental 1085 1089 nvim-luapad 1090 + gh-addressed 1086 1091 scnvim 1087 - leap 1092 + leap-nvim 1088 1093 Navigator-nvim 1089 1094 vim-beancount 1090 1095 # vimtex ··· 1095 1100 ] ++ lib.optionals pkgs.stdenv.isLinux [ 1096 1101 # Linux-only plugins 1097 1102 vim-tidal # requires SuperCollider which is Linux-only 1098 - ]; 1103 + ] ++ lib.optionals (customPlugins.amp-nvim != null) [ 1104 + customPlugins.amp-nvim 1105 + ]; 1099 1106 withPython3 = true; 1100 1107 extraPython3Packages = pkgs: with pkgs; [ tasklib six packaging ]; 1101 1108 vimAlias = true;
+65
home/profiles/nvim/lazynvim/.config/nvim/lua/config/autocmds.lua
··· 1 1 -- Autocmds are automatically loaded on the VeryLazy event 2 2 -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua 3 3 -- Add any additional autocmds here 4 + 5 + -- Aggressive fugitive auto-reload with polling 6 + local function setup_fugitive_aggressive_reload() 7 + local timer = nil 8 + 9 + local function refresh_fugitive() 10 + -- Check all files for changes 11 + vim.cmd("silent! checktime") 12 + 13 + -- Force refresh any open fugitive buffers 14 + for _, win in ipairs(vim.api.nvim_list_wins()) do 15 + local buf = vim.api.nvim_win_get_buf(win) 16 + if vim.api.nvim_buf_get_option(buf, "filetype") == "fugitive" then 17 + vim.api.nvim_buf_call(buf, function() 18 + pcall(vim.cmd, "silent! edit") 19 + end) 20 + end 21 + end 22 + end 23 + 24 + local function start_polling() 25 + if timer then vim.fn.timer_stop(timer) end 26 + -- Poll every 2 seconds 27 + timer = vim.fn.timer_start(2000, function() 28 + refresh_fugitive() 29 + end, { ["repeat"] = -1 }) 30 + end 31 + 32 + local function stop_polling() 33 + if timer then 34 + vim.fn.timer_stop(timer) 35 + timer = nil 36 + end 37 + end 38 + 39 + local augroup = vim.api.nvim_create_augroup("FugitiveAggressiveReload", { clear = true }) 40 + 41 + -- Start polling when fugitive buffer opens 42 + vim.api.nvim_create_autocmd("FileType", { 43 + group = augroup, 44 + pattern = "fugitive", 45 + callback = start_polling, 46 + }) 47 + 48 + -- Stop polling when no fugitive buffers are open 49 + vim.api.nvim_create_autocmd("BufDelete", { 50 + group = augroup, 51 + callback = function() 52 + -- Check if any fugitive buffers remain 53 + local has_fugitive = false 54 + for _, buf in ipairs(vim.api.nvim_list_bufs()) do 55 + if vim.api.nvim_buf_is_valid(buf) and vim.api.nvim_buf_get_option(buf, "filetype") == "fugitive" then 56 + has_fugitive = true 57 + break 58 + end 59 + end 60 + if not has_fugitive then 61 + stop_polling() 62 + end 63 + end, 64 + }) 65 + end 66 + 67 + -- Set up aggressive reload 68 + setup_fugitive_aggressive_reload()
+3
home/profiles/nvim/lazynvim/.config/nvim/lua/config/options.lua
··· 1 1 -- Options are automatically loaded before lazy.nvim startup 2 2 -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua 3 3 -- Add any additional options here 4 + 5 + -- Enable autoread to detect external file changes 6 + vim.opt.autoread = true
+8
home/profiles/nvim/lazynvim/.config/nvim/lua/plugins/amp.lua
··· 1 + return { 2 + { 3 + "sourcegraph/amp.nvim", 4 + branch = "main", 5 + lazy = false, 6 + opts = { auto_start = true, log_level = "info" }, 7 + }, 8 + }
+3
home/profiles/tmux/tmux.conf
··· 9 9 10 10 # Mouse works as expected 11 11 set-option -g mouse on 12 + 13 + # Enable focus events for vim/neovim autoread 14 + set -g focus-events on 12 15 # easy-to-remember split pane commands 13 16 bind | split-window -h -c "#{pane_current_path}" 14 17 bind - split-window -v -c "#{pane_current_path}"