mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
feat: configure nushell a little
This commit is contained in:
parent
eadbc15bbf
commit
927e8327cb
7 changed files with 50 additions and 11 deletions
28
users/modules/config/nushell/config.nu
Normal file
28
users/modules/config/nushell/config.nu
Normal 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
|
||||
}
|
||||
}
|
15
users/modules/config/nushell/default.nix
Normal file
15
users/modules/config/nushell/default.nix
Normal 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;
|
||||
}
|
0
users/modules/config/nushell/env.nu
Normal file
0
users/modules/config/nushell/env.nu
Normal file
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
programs.nushell.enable = true;
|
||||
programs.starship.enableNushellIntegration = false;
|
||||
programs.atuin.enableNushellIntegration = false;
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
./config/htop.nix
|
||||
./config/impermanence.nix
|
||||
./config/neovim.nix
|
||||
./config/shell
|
||||
./config/nushell
|
||||
./config/utils.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
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 yubikey pinentry is curses but should be graphical
|
||||
# TODO accounts.concats accounts.calendar
|
||||
|
@ -44,21 +46,18 @@
|
|||
# TODO agenix rekey edit secret should create temp files with same extension
|
||||
# TODO mod+f1-4 for left monitor?
|
||||
# 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 emoji in firefox are wrong
|
||||
# TODO screenshot selection/all and copy clipboard
|
||||
# TODO screenshot selection/all and save
|
||||
# TODO screenshot selection and scan qr and copy clipboard
|
||||
# TODO screenshot selection and ocr and copy clipboard
|
||||
# TODO sway config
|
||||
# TODO sway shortcuts
|
||||
# TODO enable nodeadkeys
|
||||
# TODO kitty terminfo missing with ssh root@localhost
|
||||
# TODO nvim coloscheme missing on reboot.... what state is missing?
|
||||
# TODO VP9 hardware video decoding blocklisted
|
||||
# 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 = {
|
||||
p = "cd ~/projects";
|
||||
|
|
|
@ -78,6 +78,8 @@ return packer.startup(function(use)
|
|||
use { "neovim/nvim-lspconfig", config = conf_module "lspconfig" }
|
||||
-- Neovim as an additional language server
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue