From 88c8e7703177c69ae99ec5a193778831e7d9804b Mon Sep 17 00:00:00 2001 From: arielherself Date: Thu, 9 Jan 2025 15:27:36 +0800 Subject: [PATCH] regular backup --- .vimrc | 7 ++++++- .wezterm.lua | Bin 901 -> 1145 bytes home-manager/home.nix | 6 ++++++ nix_environments/open-webui.nix | 16 ++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 nix_environments/open-webui.nix diff --git a/.vimrc b/.vimrc index 7b13153..5cdfaf9 100644 --- a/.vimrc +++ b/.vimrc @@ -97,7 +97,11 @@ Plug 'embark-theme/vim' Plug 'tpope/vim-obsession' Plug 'dhruvasagar/vim-prosession' Plug 'vim-airline/vim-airline' -Plug 'itchyny/vim-cursorword' +if has('nvim') + Plug 'tzachar/local-highlight.nvim' +else + Plug 'itchyny/vim-cursorword' +endif Plug 'wakatime/vim-wakatime' Plug 'tpope/vim-surround' Plug 'tpope/vim-commentary' @@ -335,6 +339,7 @@ let g:airline_right_sep = '' let g:airline_right_alt_sep = '' if has('nvim') + lua require('local-highlight').setup { cw_hlgroup = 'LspReferenceText' } lua require('gitsigns').setup { attach_to_untracked = true, current_line_blame = true, current_line_blame_opts = { delay = 0 } } endif diff --git a/.wezterm.lua b/.wezterm.lua index 7d42686076242c93de9e82d8bcb0a7926319a434..5acede2bc16a57b9a935c9759c0ec334aefa4832 100644 GIT binary patch literal 1145 VcmZQz7zLvtFd71*AwcI4000De00961 literal 901 zcmY*YJ&)Tk4Bh=J1aW3=gMC>&>iTf`P()Fd zB?g+8yb0aLd1-wZ@-g!d;*wV_&a?J*5V9mzP)HsqL2^DUTqY(=f84NAE z-6LQ!ir?5Y8jeBhQ)K~6tiEUWr*aKS2JOXQF|PK;N2d$8 z0ADk{*;I9W|679idvz_pC$Eae_|P$iG`w$xl3JItI?rbL8`v{wn0}%`_6uyyj#SB` z6MmZd67?tale}=WKkBjHrKTi}qj2v*S`dw%hSmv>0{?rqbbx!C1^ z#31XsGxMm_UxSJh?4lRjHSII-I3&D8?=jv>s(N}$Ypa5FXod5WjyCg?2U$;V(&ou; zg&J)-yhnK%`|~eKmEWrUyoi)QOE>v*@}6xrto43yhwYY5R|TulGzHowhVi4>E*ER7 bgG_%TT(rK|$;ad4;tvYXG7COf!xrv;3Ro;q diff --git a/home-manager/home.nix b/home-manager/home.nix index c07063c..f9234b8 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -45,6 +45,10 @@ in { directory = /mnt/fdos_server/OS-24Fall-FDU [credential] helper = store + [diff] + tool = vimdiff + [merge] + tool = vimdiff ''; }; ".vimrc" = { @@ -311,6 +315,7 @@ in { pkgs.patchelf # pkgs.screenkey pkgs.ipatool # Search and download IPAs + unstable.open-webui # My version of BerkeleyMono NF is incomplete. Should add some fallback fonts. # (pkgs.nerdfonts.override { fonts = [ @@ -439,6 +444,7 @@ in { # set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' set-option -g default-shell "${pkgs.zsh}/bin/zsh" set -g default-command "${pkgs.zsh}/bin/zsh" + set-option -g set-titles on setw -g mode-keys vi set-option -g status-position top set -g status-bg default diff --git a/nix_environments/open-webui.nix b/nix_environments/open-webui.nix new file mode 100644 index 0000000..555cb8b --- /dev/null +++ b/nix_environments/open-webui.nix @@ -0,0 +1,16 @@ +with import {}; +(pkgs.buildFHSEnv { + name = "open-webui-env"; + targetPkgs = pkgs: with pkgs; [ + (python311.withPackages (python-pkgs: with python-pkgs; [ + pip + ])) + libgcc + ]; + profile = '' + mkdir -p $HOME/.nix-envs/open-webui-env + ${python311}/bin/python -m venv $HOME/.nix-envs/open-webui-env + source $HOME/.nix-envs/open-webui-env/bin/activate + $HOME/.nix-envs/open-webui-env/bin/pip install open-webui + ''; +}).env