Compare commits

...

4 Commits

Author SHA1 Message Date
Emi Simpson 23a6670597
Enable nvim-surround 2023-03-09 08:30:47 -05:00
Emi Simpson b06aceb685
Install parallel 2023-03-09 08:30:38 -05:00
Emi Simpson bb74a6de38
Fix venv prompt 2023-03-09 08:30:21 -05:00
Emi Simpson 1554e4d8fb
Don't backup pycache 2023-03-04 23:44:50 -05:00
5 changed files with 17 additions and 0 deletions

View File

@ -14,6 +14,7 @@
git-annex
git-annex-remote-rclone
qrencode
parallel
libwebp
bat
] ++ (import ../system/home-manager.nix).extraPackages pkgs;

View File

@ -84,6 +84,15 @@ pkgs: {
echo -n (set_color --bold red) (pwd) (set_color normal)
end
function __venv
function __prompt_name
cat $VIRTUAL_ENV/pyvenv.cfg | head -n4 | tail -n 1 | cut -b 11- | head -c -2
end
if [ $VIRTUAL_ENV ]
echo -n (set_color white) '['(__prompt_name)']' (set_color normal)
end
end
function _git_branch_name
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
end
@ -117,6 +126,7 @@ pkgs: {
echo -n (set_color white)""(set_color normal)
__user_host
__current_path
__venv
__git_status
echo -e '''
echo (set_color white)""(set_color --bold white)"\$ "(set_color normal)

View File

@ -3,6 +3,9 @@ pkgs: {
font.name = "Comic Mono";
font.package = pkgs.comic-mono;
font.size = 13;
environment = {
VIRTUAL_ENV_DISABLE_PROMPT = "true";
};
settings = {
hide_window_decorations = true;
tab_bar_style = "powerline";

View File

@ -8,6 +8,8 @@ require'colorizer'.setup()
require('hop').setup()
require('nvim-surround').setup()
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true, -- false will disable the whole extension

View File

@ -4,6 +4,7 @@ let paths = [
"**/Cache/"
"**/dist/" # npm build directory
"**/node_modules/"
"**/__pycache__/"
"/home/ember/.cabal/"
"/home/ember/.cache/"
"/home/ember/.conan/"