nixfmt + zsh changes

This commit is contained in:
kat witch 2021-08-23 03:34:06 +01:00
parent 7db50fa82b
commit 59dcb0c998
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 43 additions and 45 deletions

View file

@ -55,6 +55,8 @@ in
"listrowsfirst"
]; in
''
ZSH_TAB_TITLE_ADDITIONAL_TERMS='foot'
ZSH_TAB_TITLE_ENABLE_FULL_COMMAND=true
zmodload -i zsh/complist
zstyle ':completion:*' list-colors ""
zstyle ':completion:*:*:*:*:*' menu select
@ -83,19 +85,14 @@ in
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=3,bold";
ZSH_AUTOSUGGEST_USE_ASYNC = 1;
};
plugins = [
plugins = with pkgs.zsh-plugins; [
(with pkgs.zsh-syntax-highlighting; {
name = "zsh-syntax-highlighting";
inherit src;
})
(with pkgs.zsh-plugins.vim-mode; {
name = "zsh-vim-mode";
inherit src;
})
(with pkgs.zsh-plugins.evil-registers; {
name = "evil-registers";
inherit src;
})
tab-title.zshPlugin
vim-mode.zshPlugin
evil-registers.zshPlugin
{
name = "z";
file = "z.sh";

View file

@ -2,11 +2,11 @@
{
xdg.configFile."rustfmt/rustfmt.toml".text = ''
# SPDX-FileCopyrightText: V <v@anomalous.eu>
# SPDX-License-Identifier: OSL-3.0
# SPDX-FileCopyrightText: V <v@anomalous.eu>
# SPDX-License-Identifier: OSL-3.0
hard_tabs = true
imports_granularity = "One"
hard_tabs = true
imports_granularity = "One"
'';
home.packages = with pkgs; [

View file

@ -8,6 +8,7 @@ with lib;
settings = {
main = {
term = "foot";
locked-title = false;
font = "${config.kw.font.name}:size=${toString config.kw.font.size}, Twitter Color Emoji:size=8";
font-bold = "${config.kw.font.name}:size=${toString config.kw.font.size}:style=Bold";
font-italic = "${config.kw.font.name}:size=${toString config.kw.font.size}:style=Italic";

View file

@ -6,7 +6,7 @@ let
nurpkgs = self;
pkgs = self;
};
rustfmt = super.rustfmt.overrideAttrs ({ patches ? [], ... }: {
rustfmt = super.rustfmt.overrideAttrs ({ patches ? [ ], ... }: {
patches = patches ++ [
# Adds an option variant that merges all use statements into a single block.
# Taken from https://github.com/rust-lang/rustfmt/pull/4680
@ -32,4 +32,4 @@ let
};
};
in
pkgs
pkgs