From 7da7eadff5d5910573e4ee19d8c0b086162c8065 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 29 Dec 2023 01:21:30 +0800 Subject: [PATCH] fix: foot & neovim --- .../desktop/neovim/astronvim_user/init.lua | 1 - .../desktop/hyprland/values/wayland-apps.nix | 20 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/home/base/desktop/neovim/astronvim_user/init.lua b/home/base/desktop/neovim/astronvim_user/init.lua index 0ea1afa5..605551d5 100644 --- a/home/base/desktop/neovim/astronvim_user/init.lua +++ b/home/base/desktop/neovim/astronvim_user/init.lua @@ -263,7 +263,6 @@ return { "gitignore", "gitcommit", "latex", - "pip_requirements", "sql", }) end, diff --git a/home/linux/desktop/hyprland/values/wayland-apps.nix b/home/linux/desktop/hyprland/values/wayland-apps.nix index 31f401b1..b9cc9919 100644 --- a/home/linux/desktop/hyprland/values/wayland-apps.nix +++ b/home/linux/desktop/hyprland/values/wayland-apps.nix @@ -5,13 +5,21 @@ }: { # refer to https://codeberg.org/dnkl/foot/src/branch/master/foot.ini xdg.configFile."foot/foot.ini".text = - (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-foot}/catppuccin-mocha.conf") - + '' - term=foot - font=JetBrainsMono Nerd Font:size=13 + '' + [main] dpi-aware=yes + font=JetBrainsMono Nerd Font:size=13 shell=${pkgs.bash}/bin/bash --login -c 'nu --login --interactive' - ''; + term=foot + initial-window-size-pixels=3840x2160 + initial-window-mode=windowed + pad=0x0 # optionally append 'center' + resize-delay-ms=10 + + [mouse] + hide-when-typing=yes + '' + + (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-foot}/catppuccin-mocha.conf"); programs = { # a wayland only terminal emulator @@ -24,7 +32,7 @@ # Advantages to run foot in server mode including reduced memory footprint and startup time. # The downside is a performance penalty. If one window is very busy with, for example, producing output, # then other windows will suffer. Also, should the server process crash, all windows will be gone. - server.enable = false; + server.enable = true; }; # source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix