feat(nu): started nushell config

This commit is contained in:
Patrick 2023-09-17 12:12:01 +02:00
parent 0b12596b14
commit e601ed0ded
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
9 changed files with 46 additions and 6 deletions

0
.gdb_history Normal file
View file

View file

@ -2,7 +2,7 @@
imports = [
./shells/alias.nix
./shells/zsh
./shells/nushell.nix
./shells/nu
./programs/gpg
];

View file

@ -10,7 +10,7 @@
if [ -d "/tmp/.X11-unix" ]; then
for D in /tmp/.X11-unix/*; do
file=$(${pkgs.coreutils}/bin/basename $D)
DISPLAY=":''${file:1}" ${pkgs.feh}/bin/feh --bg-fill --randomize --recursive ${wallpaper-folder}/
DISPLAY=":''${file:1}" ${pkgs.feh}/bin/feh --no-fehbg --bg-fill --randomize --recursive ${wallpaper-folder}/
done
fi
'';

View file

@ -25,6 +25,9 @@
++ optionals config.programs.direnv.enable [
".local/share/direnv"
]
++ optionals config.programs.nushell.enable [
".config/nushell"
]
++ optionals config.programs.neovim.enable [
".local/share/nvim"
".local/state/nvim"

View file

@ -42,6 +42,11 @@ return {
},
main = "nvim-treesitter.configs",
},
{
"LhKipp/nvim-nu",
build = ":TSInstall nu",
config = true,
},
{
"neovim/nvim-lspconfig",
config = function()

View file

@ -0,0 +1,28 @@
alias l = ls -a
$env.config = {
show_banner: false
completions: {
quick: true # Complete last element automatically
partial: true # Start with partial completion
algorithm: "fuzzy"
external: {
enable: true
max_results: 250
}
}
history: {
max_size: 1000001
sync_on_enter: true # write history after every command
isolation: true # Only sync on session end, keep terminals separated
file_format: "sqlite"
}
table: {
mode: "heavy"
}
cd: {
abbreviations: true
}
shell_integration: true
}

View file

@ -0,0 +1,8 @@
{
programs.atuin.enableNushellIntegration = false;
programs.nushell = {
enable = true;
configFile.source = ./config.nu;
envFile.source = ./env.nu;
};
}

View file

View file

@ -1,4 +0,0 @@
{
programs.nushell.enable = true;
programs.atuin.enableNushellIntegration = false;
}