1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: configure nushell a little

This commit is contained in:
oddlama 2023-09-17 03:34:00 +02:00
parent eadbc15bbf
commit 927e8327cb
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 50 additions and 11 deletions

View file

@ -0,0 +1,28 @@
$env.config = {
show_banner: false
history: {
max_size: 10000000
file_format: "sqlite"
# Write history on enter
sync_on_enter: true
# but each shell should have an effective isolated buffer
isolation: true
}
completions: {
case_sensitive: false
quick: true
partial: true
algorithm: "prefix"
external: {
enable: true
max_results: 200
completer: null
}
}
cd: {
abbreviations: true
}
}

View file

@ -0,0 +1,15 @@
{
programs.nushell = {
enable = true;
configFile.source = ./config.nu;
envFile.source = ./env.nu;
};
home.persistence."/persist".directories = [
".config/nushell"
];
# XXX: remove once removed. DEBOALOGR
programs.starship.enableNushellIntegration = false;
programs.atuin.enableNushellIntegration = false;
}

View file

View file

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

View file

@ -6,7 +6,7 @@
./config/htop.nix ./config/htop.nix
./config/impermanence.nix ./config/impermanence.nix
./config/neovim.nix ./config/neovim.nix
./config/shell ./config/nushell
./config/utils.nix ./config/utils.nix
]; ];
} }

View file

@ -37,6 +37,8 @@
zathura zathura
]; ];
# TODO thunderbird doesn't use passwords from password command
# TODO rotating wallpaper
# TODO thunderbird date time format is wrong even though this is C.utf8 # TODO thunderbird date time format is wrong even though this is C.utf8
# TODO yubikey pinentry is curses but should be graphical # TODO yubikey pinentry is curses but should be graphical
# TODO accounts.concats accounts.calendar # TODO accounts.concats accounts.calendar
@ -44,21 +46,18 @@
# TODO agenix rekey edit secret should create temp files with same extension # TODO agenix rekey edit secret should create temp files with same extension
# TODO mod+f1-4 for left monitor? # TODO mod+f1-4 for left monitor?
# TODO autostart signal, firefox (both windows), etc. # TODO autostart signal, firefox (both windows), etc.
# TODO agenix rekey caches in /tmp which is removed each reboot and could be improved # TODO repo secrets caches in /tmp which is removed each reboot and could be improved
# TODO entering devshell takes some time after reboot # TODO entering devshell takes some time after reboot
# TODO emoji in firefox are wrong
# TODO screenshot selection/all and copy clipboard # TODO screenshot selection/all and copy clipboard
# TODO screenshot selection/all and save # TODO screenshot selection/all and save
# TODO screenshot selection and scan qr and copy clipboard # TODO screenshot selection and scan qr and copy clipboard
# TODO screenshot selection and ocr and copy clipboard # TODO screenshot selection and ocr and copy clipboard
# TODO sway config
# TODO sway shortcuts # TODO sway shortcuts
# TODO enable nodeadkeys
# TODO kitty terminfo missing with ssh root@localhost # TODO kitty terminfo missing with ssh root@localhost
# TODO nvim coloscheme missing on reboot.... what state is missing? # TODO nvim coloscheme missing on reboot.... what state is missing?
# TODO VP9 hardware video decoding blocklisted # TODO VP9 hardware video decoding blocklisted
# TODO gpg switch to sk # TODO gpg switch to sk
# TODO some font icons not showing neovim # TODO some font icons not showing neovim because removed from nerdfonts, replace with bertter .
shellAliases = { shellAliases = {
p = "cd ~/projects"; p = "cd ~/projects";

View file

@ -78,6 +78,8 @@ return packer.startup(function(use)
use { "neovim/nvim-lspconfig", config = conf_module "lspconfig" } use { "neovim/nvim-lspconfig", config = conf_module "lspconfig" }
-- Neovim as an additional language server -- Neovim as an additional language server
use { "jose-elias-alvarez/null-ls.nvim", config = conf_fn "null-ls" } use { "jose-elias-alvarez/null-ls.nvim", config = conf_fn "null-ls" }
-- Nushell syntax via treesitter
use { "LhKipp/nvim-nu", run = ":TSInstall nu", config = function() require("nu").setup{} end }
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- Editing -- Editing