feat(nu): started nushell config
This commit is contained in:
parent
0b12596b14
commit
e601ed0ded
0
.gdb_history
Normal file
0
.gdb_history
Normal file
|
@ -2,7 +2,7 @@
|
|||
imports = [
|
||||
./shells/alias.nix
|
||||
./shells/zsh
|
||||
./shells/nushell.nix
|
||||
./shells/nu
|
||||
|
||||
./programs/gpg
|
||||
];
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -42,6 +42,11 @@ return {
|
|||
},
|
||||
main = "nvim-treesitter.configs",
|
||||
},
|
||||
{
|
||||
"LhKipp/nvim-nu",
|
||||
build = ":TSInstall nu",
|
||||
config = true,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
|
|
28
users/common/shells/nu/config.nu
Normal file
28
users/common/shells/nu/config.nu
Normal 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
|
||||
}
|
8
users/common/shells/nu/default.nix
Normal file
8
users/common/shells/nu/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs.atuin.enableNushellIntegration = false;
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./config.nu;
|
||||
envFile.source = ./env.nu;
|
||||
};
|
||||
}
|
0
users/common/shells/nu/env.nu
Normal file
0
users/common/shells/nu/env.nu
Normal file
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
programs.nushell.enable = true;
|
||||
programs.atuin.enableNushellIntegration = false;
|
||||
}
|
Loading…
Reference in a new issue