From 6903c876e4f463a520560821ba019bf336ee4d9e Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Thu, 8 Feb 2024 15:21:56 +0100 Subject: [PATCH] asdf --- nvim/.config/nvim/fnl/dots/keybinds.fnl | 2 + .../nvim/fnl/dots/plugins/flutter-tools.fnl | 7 +++ .../.config/nvim/fnl/dots/plugins/plugins.fnl | 1 - nvim/.config/nvim/fnl/main.fnl | 2 - nvim/.config/nvim/lazy-lock.json | 61 ++++++++++--------- ...49E10D-EF08-485D-8C34-FA04DC5EBF93.session | 1 + ...DBFE2B-322A-4617-8D23-8B7BE9945928.session | 1 + .../.zsh_sessions/_expiration_check_timestamp | 0 zsh/.config/zsh/.zshrc | 25 +++++--- zsh/.config/zsh/abbreviations | 6 ++ zsh/.config/zsh/prompt.zsh | 2 +- 11 files changed, 66 insertions(+), 42 deletions(-) create mode 100644 nvim/.config/nvim/fnl/dots/plugins/flutter-tools.fnl create mode 100644 zsh/.config/zsh/.zsh_sessions/1B49E10D-EF08-485D-8C34-FA04DC5EBF93.session create mode 100644 zsh/.config/zsh/.zsh_sessions/85DBFE2B-322A-4617-8D23-8B7BE9945928.session create mode 100644 zsh/.config/zsh/.zsh_sessions/_expiration_check_timestamp diff --git a/nvim/.config/nvim/fnl/dots/keybinds.fnl b/nvim/.config/nvim/fnl/dots/keybinds.fnl index a8371ed..0b4511a 100644 --- a/nvim/.config/nvim/fnl/dots/keybinds.fnl +++ b/nvim/.config/nvim/fnl/dots/keybinds.fnl @@ -27,6 +27,8 @@ (utils.keymap :n : "lua vim.lsp.buf.definition()") (utils.keymap :n : "lua vim.lsp.buf.hover()") +(utils.keymap :n :c "\"+y") + ;(utils.keymap :i : "(copilot-suggest)") ;(utils.keymap :i : "(copilot-dismiss)") diff --git a/nvim/.config/nvim/fnl/dots/plugins/flutter-tools.fnl b/nvim/.config/nvim/fnl/dots/plugins/flutter-tools.fnl new file mode 100644 index 0000000..a64ed81 --- /dev/null +++ b/nvim/.config/nvim/fnl/dots/plugins/flutter-tools.fnl @@ -0,0 +1,7 @@ +(local {: autoload : utils} (require :dots.prelude)) +; (local flutter-tools (autoload :flutter-tools))) +[(utils.plugin :akinsho/flutter-tools.nvim + {:config true + :lazy false + :dependencies ["nvim-lua/plenary.nvim" "stevearc/dressing.nvim"]})] + diff --git a/nvim/.config/nvim/fnl/dots/plugins/plugins.fnl b/nvim/.config/nvim/fnl/dots/plugins/plugins.fnl index b7bceab..e0c87c2 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/plugins.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/plugins.fnl @@ -115,7 +115,6 @@ (plugin :tpope/vim-sleuth) (plugin :editorconfig/editorconfig-vim) - (plugin :pechorin/any-jump.vim) (plugin :sbdchd/neoformat) (plugin :elkowar/antifennel-nvim {:config #(set vim.g.antifennel_executable "/home/leon/tmp/antifennel/antifennel")}) diff --git a/nvim/.config/nvim/fnl/main.fnl b/nvim/.config/nvim/fnl/main.fnl index 4f39ff1..7aafe05 100644 --- a/nvim/.config/nvim/fnl/main.fnl +++ b/nvim/.config/nvim/fnl/main.fnl @@ -135,7 +135,5 @@ (vim.cmd "command! -nargs=1 L :lua print(vim.inspect())") -; (vim.cmd "Copilot enable") - ; vim:foldmarker=foldstart,foldend diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 47201c2..4861e4b 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -1,7 +1,7 @@ { "agda-vim": { "branch": "master", "commit": "4a0f475aaef756702222bdd5b01e25f814f5691f" }, + "aniseed": { "branch": "master", "commit": "7bc09736f3651c10d29b82d1a465b7f540614be1" }, "antifennel-nvim": { "branch": "master", "commit": "79261d02213a5093135e5d02431682f04459f0f7" }, - "any-jump.vim": { "branch": "master", "commit": "770ef708ae3f13322430fcc663d7dfb864756b9b" }, "ats-vim": { "branch": "master", "commit": "8e3e722b6d09ed81313573b4e7b108b265628ff1" }, "auto-pairs": { "branch": "master", "commit": "39f06b873a8449af8ff6a3eee716d3da14d63a76" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, @@ -15,16 +15,17 @@ "cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" }, "conflict-marker.vim": { "branch": "master", "commit": "11a4d42244755505b66b15cd4496a150432eb5e3" }, "conjure": { "branch": "master", "commit": "58c46d1f4999679659a5918284b574c266a7ac83" }, - "copilot.lua": { "branch": "master", "commit": "1a8032ae496916ccc7a7a52ee79194fbef29f462" }, - "diffview.nvim": { "branch": "main", "commit": "0437ef8bfdd67156d87140d692840a3c2824fa20" }, - "dressing.nvim": { "branch": "master", "commit": "8f4d62b7817455896a3c73cab642002072c114bc" }, + "copilot.lua": { "branch": "master", "commit": "73047082d72fcfdde1f73b7f17ad495cffcbafaa" }, + "diffview.nvim": { "branch": "main", "commit": "d38c1b5266850f77f75e006bcc26213684e1e141" }, + "dressing.nvim": { "branch": "master", "commit": "fe3071330a0720ce3695ac915820c8134b22d1b0" }, "editorconfig-vim": { "branch": "master", "commit": "0d54ea863089fb13be423b4aed6cca35f3a5d778" }, "emmet-vim": { "branch": "master", "commit": "def5d57a1ae5afb1b96ebe83c4652d1c03640f4d" }, "feline.nvim": { "branch": "master", "commit": "3587f57480b88e8009df7b36dc84e9c7ff8f2c49" }, "fennel.vim": { "branch": "master", "commit": "30b9beabad2c4f09b9b284caf5cd5666b6b4dc89" }, + "flutter-tools.nvim": { "branch": "main", "commit": "7350750d46fbeb4d2bb4878157b658d435935299" }, "friendly-snippets": { "branch": "main", "commit": "43727c2ff84240e55d4069ec3e6158d74cb534b6" }, - "gh.nvim": { "branch": "main", "commit": "2b5551656c1b896bf4ae06546eaaab00311f9a18" }, - "gitsigns.nvim": { "branch": "main", "commit": "ff01d34daaed72f271a8ffa088a7e839a60c640f" }, + "gh.nvim": { "branch": "main", "commit": "509e19660cbe5b06f0e43ca1ad5ed98f281c2c95" }, + "gitsigns.nvim": { "branch": "main", "commit": "af0f583cd35286dd6f0e3ed52622728703237e50" }, "glance.nvim": { "branch": "master", "commit": "8ed5cf3b3b1231ea696d88c9efd977027429d869" }, "haskell-vim": { "branch": "master", "commit": "f35d02204b4813d1dbe8b0e98cc39701a4b8e15e" }, "hop.nvim": { "branch": "master", "commit": "1a1eceafe54b5081eae4cb91c723abd1d450f34b" }, @@ -32,35 +33,35 @@ "inc-rename.nvim": { "branch": "main", "commit": "ed0f6f2b917cac4eb3259f907da0a481b27a3b7e" }, "kmonad-vim": { "branch": "master", "commit": "37978445197ab00edeb5b731e9ca90c2b141723f" }, "lalrpop.vim": { "branch": "master", "commit": "7073eec8efdeff37cacd4bca378c28dad02c3c14" }, - "lazy.nvim": { "branch": "main", "commit": "25f6009087cc2bb85aedf4425c23f35c03e60b02" }, + "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, "litee.nvim": { "branch": "main", "commit": "bf366a1414fd0f9401631ac8884f2f9fa4bf18d2" }, - "lsp_lines.nvim": { "branch": "main", "commit": "9e3f99fbbd28aaec80dc0158c43be8cca8dd5017" }, - "lsp_signature.nvim": { "branch": "master", "commit": "bdf3dc7bb03edd25c2173e0e31c2fb122052ed23" }, - "neoformat": { "branch": "master", "commit": "aedb6f9d3f53d5da229095f7d761d749f8c5c7e0" }, - "neogit": { "branch": "master", "commit": "ed99c59d7fda3ba5e2ce9a3adc0a8eb5ebfa6c8f" }, - "nerdcommenter": { "branch": "master", "commit": "d2e21d417f6c788b11ae3b90d7ac478930dead36" }, + "lsp_lines.nvim": { "branch": "main", "commit": "cf2306dd332e34a3e91075b40bdd4f6db824b2ee" }, + "lsp_signature.nvim": { "branch": "master", "commit": "9ed85616b772a07f8db56c26e8fff2d962f1f211" }, + "neoformat": { "branch": "master", "commit": "51f0eef4c47f4a677ce6272c103d4ac74acb3b8f" }, + "neogit": { "branch": "master", "commit": "d3c5687a78cffc25026ff31d2fcbd61a2a3e067f" }, + "nerdcommenter": { "branch": "master", "commit": "da948e160d9f54c2967c7927b9c74c5a68c8dc49" }, "nfnl": { "branch": "main", "commit": "979dbfc48bcb601a9107764a99f9459cb5bd4051" }, "nvim-bufferline.lua": { "branch": "main", "commit": "6ecd37e0fa8b156099daedd2191130e083fb1490" }, - "nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" }, + "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, "nvim-code-action-menu": { "branch": "main", "commit": "e4399dbaf6eabff998d3d5f1cbcd8d9933710027" }, "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" }, - "nvim-dap": { "branch": "master", "commit": "b3d4408e29d924fe130c9397a7c3b3630b3ea671" }, + "nvim-dap": { "branch": "master", "commit": "9d81c11fd185a131f81841e64941859305f6c42d" }, "nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" }, "nvim-jenkinsfile-linter": { "branch": "main", "commit": "6e740a9e42251452cbc79808ea894f5233a93e92" }, - "nvim-lspconfig": { "branch": "master", "commit": "2b361e043810d5587d9af0787f8ce40da92ec5e9" }, + "nvim-lspconfig": { "branch": "master", "commit": "36e4ffec0a9e373ac9dbf7949d3567c8f04ca3df" }, "nvim-scrollbar": { "branch": "main", "commit": "35f99d559041c7c0eff3a41f9093581ceea534e8" }, - "nvim-treesitter": { "branch": "master", "commit": "10bfa4826f2235c600c073a82e0d78718aa7240e" }, - "nvim-treesitter-textsubjects": { "branch": "master", "commit": "48b3bf54e32f23e2299c59ff76fa3b0599565b39" }, - "nvim-ts-context-commentstring": { "branch": "main", "commit": "7241635869b7a8115893ffa67bab3907756caf4f" }, - "nvim-web-devicons": { "branch": "master", "commit": "45d0237c427baba8cd05e0ab26d30e2ee58c2c82" }, + "nvim-treesitter": { "branch": "master", "commit": "8996612bfbebe1657e1bb55a95201c96cab945c6" }, + "nvim-treesitter-textsubjects": { "branch": "master", "commit": "011c09784f1a95cf469a48c1993b664190440391" }, + "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" }, + "nvim-web-devicons": { "branch": "master", "commit": "47103b80c38c59f7a1b5408c232b92bf5d018651" }, "nvim.lua": { "branch": "master", "commit": "5d57be0b6eea6c06977b1c5fe0752da909cf4154" }, "nvlime": { "branch": "master", "commit": "83606f7e2d017ee7fcafe4ed4bf91ac776705633" }, - "octo.nvim": { "branch": "master", "commit": "22a231fc621346734464c3cbca0be467b292b343" }, + "octo.nvim": { "branch": "master", "commit": "2e4cdb6faa3f05c85605c0074f471840747337da" }, "parinfer-rust": { "branch": "master", "commit": "0e4d52e712641ad351a1bfe6cee3d34d63ed087b" }, "parsley": { "branch": "main", "commit": "9a388fe9e8a443d9d892318b4cce6dd287c47e38" }, - "persistence.nvim": { "branch": "main", "commit": "4b8051c01f696d8849a5cb8afa9767be8db16e40" }, + "persistence.nvim": { "branch": "main", "commit": "ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" }, "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, - "plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" }, + "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, "purescript-vim": { "branch": "main", "commit": "82348352e6568fcc0385bd7c99a8ead3a479feea" }, "rust-tools.nvim": { "branch": "patched", "commit": "4338a9b08faa8da8b5aad095a035ceff31301e3f" }, @@ -71,13 +72,13 @@ "tabular": { "branch": "master", "commit": "339091ac4dd1f17e225fe7d57b48aff55f99b23a" }, "targets.vim": { "branch": "master", "commit": "642d3a4ce306264b05ea3219920b13ea80931767" }, "telescope-dap.nvim": { "branch": "master", "commit": "4e2d5efb92062f0b865fe59b200b5ed7793833bf" }, - "telescope.nvim": { "branch": "master", "commit": "205f469244916716c49cc2b9026566749425c5ba" }, - "todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" }, - "trouble.nvim": { "branch": "main", "commit": "3f85d8ed30e97ceeddbbcf80224245d347053711" }, - "typescript-vim": { "branch": "master", "commit": "31ede5ad905ce4159a5e285073a391daa3bf83fa" }, + "telescope.nvim": { "branch": "master", "commit": "20bf20500c95208c3ac0ef07245065bf94dcab15" }, + "todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" }, + "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, + "typescript-vim": { "branch": "master", "commit": "eafdcf5e9ee73b43d92372d69dd84458bf98c5e3" }, "vim-bbye": { "branch": "master", "commit": "25ef93ac5a87526111f43e5110675032dbcacf56" }, "vim-exchange": { "branch": "master", "commit": "784d63083ad7d613aa96f00021cd0dfb126a781a" }, - "vim-fugitive": { "branch": "master", "commit": "99db68d9b3304580bd383da7aaee05c7a954a344" }, + "vim-fugitive": { "branch": "master", "commit": "46eaf8918b347906789df296143117774e827616" }, "vim-gh-line": { "branch": "master", "commit": "fbf368bdfad7e5478009a6dc62559e6b2c72d603" }, "vim-gruvbox8": { "branch": "master", "commit": "8a634bd8d7539eb645e23147516d6c3054e71306" }, "vim-indent-guides": { "branch": "master", "commit": "a1e1390c0136e63e813d051de2003bf0ee18ae30" }, @@ -93,12 +94,12 @@ "vim-svelte": { "branch": "main", "commit": "0e93ec53c3667753237282926fec626785622c1c" }, "vim-toml": { "branch": "main", "commit": "d36caa6b1cf508a4df1c691f915572fc02143258" }, "vim-tsx": { "branch": "master", "commit": "77c89c42e189fefd3c9a632b37b7e3b3b9edf918" }, - "vim-visual-multi": { "branch": "master", "commit": "724bd53adfbaf32e129b001658b45d4c5c29ca1a" }, + "vim-visual-multi": { "branch": "master", "commit": "aec289a9fdabaa0ee6087d044d75b32e12084344" }, "vim-vsnip": { "branch": "master", "commit": "be277461265f1e5c7db470aa479f30956597ea9e" }, "vim-vsnip-integ": { "branch": "master", "commit": "1914e72cf3de70df7f5dde476cd299aba2440aef" }, - "vimtex": { "branch": "master", "commit": "a59a49b54ae039f1a439c9a16c2ea7b461b8e925" }, + "vimtex": { "branch": "master", "commit": "7d1dbd0eebe041fbda4d1132622bf051b1546497" }, "webapi-vim": { "branch": "master", "commit": "70c49ada7827d3545a65cbdab04c5c89a3a8464e" }, - "which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }, + "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, "yats.vim": { "branch": "master", "commit": "2b6950c7143790e6930b8cf32d60c6858a50d47c" }, "yuck.vim": { "branch": "master", "commit": "9b5e0370f70cc30383e1dabd6c215475915fe5c3" } } \ No newline at end of file diff --git a/zsh/.config/zsh/.zsh_sessions/1B49E10D-EF08-485D-8C34-FA04DC5EBF93.session b/zsh/.config/zsh/.zsh_sessions/1B49E10D-EF08-485D-8C34-FA04DC5EBF93.session new file mode 100644 index 0000000..bba15e6 --- /dev/null +++ b/zsh/.config/zsh/.zsh_sessions/1B49E10D-EF08-485D-8C34-FA04DC5EBF93.session @@ -0,0 +1 @@ +echo Restored session: "$(/bin/date -r 1698764041)" diff --git a/zsh/.config/zsh/.zsh_sessions/85DBFE2B-322A-4617-8D23-8B7BE9945928.session b/zsh/.config/zsh/.zsh_sessions/85DBFE2B-322A-4617-8D23-8B7BE9945928.session new file mode 100644 index 0000000..d58e515 --- /dev/null +++ b/zsh/.config/zsh/.zsh_sessions/85DBFE2B-322A-4617-8D23-8B7BE9945928.session @@ -0,0 +1 @@ +echo Restored session: "$(/bin/date -r 1698764040)" diff --git a/zsh/.config/zsh/.zsh_sessions/_expiration_check_timestamp b/zsh/.config/zsh/.zsh_sessions/_expiration_check_timestamp new file mode 100644 index 0000000..e69de29 diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index efd9d83..c9888b4 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -2,7 +2,7 @@ # history config HISTSIZE=50000 SAVEHIST=50000 -HISTFILE="/home/leon/.cache/zsh/history" +HISTFILE="$HOME/.cache/zsh/history" setopt HIST_SAVE_NO_DUPS setopt HIST_IGNORE_ALL_DUPS #setopt INC_APPEND_HISTORY @@ -102,30 +102,39 @@ fi export EDITOR=nvim export VISUAL=nvim -export ANDROID_HOME="/home/leon/Android/Sdk" -export ANDROID_NDK="/home/leon/Android/Sdk/ndk/21.4.7075529" +export ANDROID_HOME="$HOME/Android/Sdk" +export ANDROID_NDK="$HOME/Android/Sdk/ndk/21.4.7075529" export JAVA_HOME="/usr/lib/jvm/java-1.19.0-openjdk-amd64/" if [ -d "$HOME/anaconda3" ]; then # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! - __conda_setup="$('/home/leon/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" + __conda_setup="$("$HOME/anaconda3/bin/conda" 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else - if [ -f "/home/leon/anaconda3/etc/profile.d/conda.sh" ]; then - . "/home/leon/anaconda3/etc/profile.d/conda.sh" + if [ -f "$HOME/anaconda3/etc/profile.d/conda.sh" ]; then + . "$HOME/anaconda3/etc/profile.d/conda.sh" else - export PATH="/home/leon/anaconda3/bin:$PATH" + export PATH="$HOME/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<< fi -export PATH="/home/leon/.volta/bin:$PATH" +export PATH="$HOME/.volta/bin:$PATH" +export PATH="$HOME/.local/bin:$PATH" + + +if command -v flutter >/dev/null; then + export PATH="$HOME/.pub-cache/bin:$PATH" +fi #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" + +if [ -f '~/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '~/Downloads/google-cloud-sdk/path.zsh.inc'; fi +if [ -f '~/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '~/Downloads/google-cloud-sdk/completion.zsh.inc'; fi diff --git a/zsh/.config/zsh/abbreviations b/zsh/.config/zsh/abbreviations index ed0cf9a..2b79509 100644 --- a/zsh/.config/zsh/abbreviations +++ b/zsh/.config/zsh/abbreviations @@ -4,4 +4,10 @@ abbr cnix="cd ~/.config/nixpkgs && nvim && cd -" abbr cxmonad="cd ~/.xmonad && nvim lib/Config.hs && cd -" abbr ra="ranger" abbr cr="cargo run -- " +abbr g="git " +abbr ga.="git add ." +abbr gaa="git add --all" +abbr gc="git commit" +abbr gr="git rebase " +abbr gs="git ss " diff --git a/zsh/.config/zsh/prompt.zsh b/zsh/.config/zsh/prompt.zsh index 30e7d78..4945420 100644 --- a/zsh/.config/zsh/prompt.zsh +++ b/zsh/.config/zsh/prompt.zsh @@ -33,7 +33,7 @@ function get_dir() { function git_status() { - local BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\s*\(.*\)/\1/') + local BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\s*\(.*\)/\1/' | tr -d ' ') if [ ! -z $BRANCH ]; then echo -n "(%F{$__bright_cyan}$BRANCH%F{$__bright_white}"