Configuration files

Compare changes

Choose any two refs to compare.

+3 -2
.config/emacs/init.el
··· 67 67 (setq desktop-path `(,temp-dir))) 68 68 (setq-default indent-tabs-mode nil) 69 69 (setq-default tab-width 4) 70 + (setq-default display-line-numbers-width 4) 70 71 (setq desktop-restore-frames nil) 71 72 (setq use-dialog-box nil) 72 73 (setq use-short-answers t) ··· 283 284 (:features) 284 285 (:format (format-all--buffer-easy executable "-"))) 285 286 (setq-default format-all-formatters 286 - '(("C" (clang-format)) 287 + `(("C" (clang-format)) 287 288 ("C++" (clang-format)) 288 289 ("Rust" (rustfmt)) 289 290 ("TOML" (taplo-fmt)) 290 291 ("CMake" (gersemi)) 291 - ("Shell" (shfmt))))) 292 + ("Shell" (shfmt "-i" ,(format "%d" tab-width)))))) 292 293 293 294 294 295 (use-package emacs
+32
.config/foot/foot.ini
··· 1 + [main] 2 + font = monospace:size=13 3 + dpi-aware = yes 4 + pad = 8x4 5 + 6 + [colors] 7 + foreground = dcd7ba 8 + background = 1f1f28 9 + 10 + selection-foreground = c8c093 11 + selection-background = 2d4f67 12 + 13 + regular0 = 090618 14 + regular1 = c34043 15 + regular2 = 76946a 16 + regular3 = c0a36e 17 + regular4 = 7e9cd8 18 + regular5 = 957fb8 19 + regular6 = 6a9589 20 + regular7 = c8c093 21 + 22 + bright0 = 727169 23 + bright1 = e82424 24 + bright2 = 98bb6c 25 + bright3 = e6c384 26 + bright4 = 7fb4ca 27 + bright5 = 938aa9 28 + bright6 = 7aa89f 29 + bright7 = dcd7ba 30 + 31 + 16 = ffa066 32 + 17 = ff5d62
+1 -1
.config/jj/config.toml
··· 4 4 5 5 [ui] 6 6 default-command = "status" 7 - diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"] 7 + diff-editor = ":builtin" 8 8 9 9 [aliases] 10 10 b = ["bookmark"]
+4
.config/nvim/init.lua
··· 17 17 vim.opt.cursorline = true 18 18 vim.opt.scrolloff = 10 19 19 vim.opt.hlsearch = true 20 + if vim.fn.has("nvim-0.12") == 1 then 21 + vim.opt.autocomplete = true 22 + end 23 + vim.opt.completeopt = "noselect,menuone,fuzzy" 20 24 vim.o.textwidth = 100 21 25 vim.o.colorcolumn = "+1" 22 26 vim.o.showbreak = "โ†ช "
+14 -17
.config/nvim/lazy-lock.json
··· 1 1 { 2 - "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, 3 - "conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" }, 4 - "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, 5 - "fzf-lua": { "branch": "main", "commit": "c9a2deb7bf2d8deaf56a229ff9c7bfeffa8d7d53" }, 6 - "gitsigns.nvim": { "branch": "main", "commit": "b01433169be710d6c69f7b4ee264d9670698b831" }, 7 - "grug-far.nvim": { "branch": "main", "commit": "45981a9af7f4e666a3cdaedb1d21d2ab926727a2" }, 8 - "kanagawa.nvim": { "branch": "master", "commit": "debe91547d7fb1eef34ce26a5106f277fbfdd109" }, 9 - "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, 10 - "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, 11 - "mini.files": { "branch": "main", "commit": "5b9431cf5c69b8e69e5a67d2d12338a3ac2e1541" }, 12 - "mini.surround": { "branch": "main", "commit": "b12fcfefd6b9b7c9e9a773bc0e3e07ae20c03351" }, 2 + "conform.nvim": { "branch": "master", "commit": "9b8fa5e0b78168f68bee9bf886dc20f287c61e02" }, 3 + "fzf-lua": { "branch": "main", "commit": "3b53b0eb26972686c5825d7c0e63b3cffd0c4f2b" }, 4 + "gitsigns.nvim": { "branch": "main", "commit": "5813e4878748805f1518cee7abb50fd7205a3a48" }, 5 + "grug-far.nvim": { "branch": "main", "commit": "b58b2d65863f4ebad88b10a1ddd519e5380466e0" }, 6 + "kanagawa.nvim": { "branch": "master", "commit": "aef7f5cec0a40dbe7f3304214850c472e2264b10" }, 7 + "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, 8 + "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, 9 + "mini.surround": { "branch": "main", "commit": "88c52297ed3e69ecf9f8652837888ecc727a28ee" }, 13 10 "nvim-bufdel": { "branch": "main", "commit": "523d58e94e7212fff3e05c247b962dc8f93bcfde" }, 14 - "nvim-notify": { "branch": "master", "commit": "397c7c1184745fca649e5104de659e6392ef5a4d" }, 11 + "nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" }, 15 12 "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, 16 - "nvim-web-devicons": { "branch": "master", "commit": "0422a19d9aa3aad2c7e5cca167e5407b13407a9d" }, 17 - "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, 18 - "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, 19 - "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, 20 - "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } 13 + "nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" }, 14 + "persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" }, 15 + "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, 16 + "todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" }, 17 + "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } 21 18 }
-42
.config/nvim/lua/plugins/completion.lua
··· 1 - return { 2 - "saghen/blink.cmp", 3 - version = "v1.*", 4 - dependencies = { 5 - "rafamadriz/friendly-snippets", 6 - }, 7 - opts = { 8 - keymap = { 9 - preset = "default", 10 - ["<CR>"] = { "accept", "fallback" }, 11 - ["<C-L>"] = { "snippet_forward", "fallback" }, 12 - ["<C-H>"] = { "snippet_backward", "fallback" }, 13 - ["<Tab>"] = { "fallback" }, 14 - ["<S-Tab>"] = { "fallback" }, 15 - }, 16 - appearance = { 17 - use_nvim_cmp_as_default = true, 18 - nerd_font_variant = "mono", 19 - }, 20 - signature = { 21 - enabled = true, 22 - }, 23 - cmdline = { 24 - enabled = false, 25 - }, 26 - completion = { 27 - menu = { 28 - draw = { 29 - treesitter = { "lsp" }, 30 - }, 31 - }, 32 - documentation = { 33 - auto_show = true, 34 - auto_show_delay_ms = 200, 35 - }, 36 - ghost_text = { 37 - enabled = false, 38 - }, 39 - }, 40 - }, 41 - opts_extend = { "sources.default" }, 42 - }
-19
.config/nvim/lua/plugins/mini.lua
··· 1 1 ---@type LazySpec 2 2 return { 3 3 { 4 - "echasnovski/mini.files", 5 - version = false, 6 - opts = { 7 - windows = { preview = true, width_preview = 80 }, 8 - options = { 9 - use_as_default_explorer = false, 10 - }, 11 - }, 12 - keys = { 13 - { 14 - "<leader>f", 15 - function() 16 - require("mini.files").open(vim.api.nvim_buf_get_name(0), true) 17 - end, 18 - desc = "Open mini files", 19 - }, 20 - }, 21 - }, 22 - { 23 4 "echasnovski/mini.surround", 24 5 event = "VeryLazy", 25 6 opts = {
+1 -1
.config/starship.toml
··· 40 40 ) 41 41 ' 42 42 ''' 43 - detect_folders = [".jj"] 43 + when = "jj root --ignore-working-copy" 44 44 symbol = "๐Ÿฆ " 45 45 style = "bold blue"
+1 -1
.gitconfig
··· 5 5 [pull] 6 6 rebase = true 7 7 [core] 8 - editor = emacs -nw 8 + editor = nvim 9 9 pager = delta 10 10 11 11 [interactive]
-1
.zshenv
··· 1 - . "$HOME/.cargo/env"
+39 -6
.zshrc
··· 32 32 export PATH=~/.zvm/bin:$PATH 33 33 export PATH=~/.local/bin:$PATH 34 34 35 - eval "$(starship init zsh)" 36 - eval "$(zoxide init zsh --cmd cd)" 35 + if [ -x "$(which starship)" ]; then 36 + eval "$(starship init zsh)" 37 + else 38 + echo "starship not in path" 39 + fi 40 + 41 + if [ -x "$(which zoxide)" ]; then 42 + eval "$(zoxide init zsh --cmd cd)" 43 + else 44 + echo "zoxide not in path" 45 + fi 46 + 37 47 export GPG_TTY=$(tty) 38 - export EDITOR='emacs -nw' 39 - export MANPAGER="sh -c 'col -xbf | bat -p -l man'" 48 + 49 + if [ -x "$(which nvim)" ]; then 50 + export EDITOR='nvim' 51 + elif [ -x "$(which vim)" ]; then 52 + export EDITOR='vim' 53 + else 54 + export EDITOR='vi' 55 + fi 56 + 57 + if [ -x "$(which batman)" ]; then 58 + eval "$(batman --export-env)" 59 + fi 60 + 61 + if [ -x "$(which opam)" ]; then 62 + eval "$(opam env --switch=default)" 63 + fi 64 + 65 + 66 + LOCAL_ZSH_PATH="$HOME/.local.zsh" 67 + if [ -f "$LOCAL_ZSH_PATH" ]; then 68 + source "$LOCAL_ZSH_PATH" 69 + fi 40 70 41 71 # git 42 72 alias gs="git status" ··· 46 76 alias gc="git commit" 47 77 alias lzg=lazygit 48 78 49 - 50 - alias ls="lsd" 79 + if [ -x "$(which lsr)" ]; then 80 + alias ls="lsr" 81 + elif [ -x "$(which lsd)" ]; then 82 + alias ls="lsd" 83 + fi 51 84 alias l="ls -la" 52 85 alias la="ls -lA"