python and other fixes

This commit is contained in:
Noah Masur 2022-06-21 17:51:27 -04:00
parent c4ee4cafa5
commit 85116fc8fd
7 changed files with 29 additions and 8 deletions

View File

@ -19,6 +19,7 @@ darwin.lib.darwinSystem {
../../modules/applications/discord.nix ../../modules/applications/discord.nix
../../modules/programming/nix.nix ../../modules/programming/nix.nix
../../modules/programming/terraform.nix ../../modules/programming/terraform.nix
../../modules/programming/python.nix
../../modules/programming/lua.nix ../../modules/programming/lua.nix
../../modules/programming/kubernetes.nix ../../modules/programming/kubernetes.nix
]; ];

View File

@ -31,9 +31,16 @@ function obj:init()
-- get the focused window -- get the focused window
local win = hs.window.focusedWindow() local win = hs.window.focusedWindow()
-- maximize if possible -- maximize if possible
for i = 1, 8 do win:maximize()
win:maximize() win:maximize()
end win:maximize()
win:maximize()
win:maximize()
win:maximize()
win:maximize()
-- for i = 1, 8 do
-- win:maximize()
-- end
end) end)
end end

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { { config, pkgs, lib, ... }: {
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
@ -16,6 +16,11 @@
noti # Create notifications programmatically noti # Create notifications programmatically
]; ];
programs.fish.shellAbbrs = {
# Add noti for ghpr in Darwin
ghpr = lib.mkForce "gh pr create && sleep 3 && noti gh run watch";
};
}; };
} }

View File

@ -24,8 +24,8 @@ key("n", "<CR>", ":noh<CR><CR>", { silent = true })
-- Shuffle lines around -- Shuffle lines around
key("n", "<A-j>", ":m .+1<CR>==") key("n", "<A-j>", ":m .+1<CR>==")
key("n", "<A-k>", ":m .-2<CR>==") key("n", "<A-k>", ":m .-2<CR>==")
key("i", "<A-j>", "<Esc>:m .+1<CR>==gi") -- key("i", "<A-j>", "<Esc>:m .+1<CR>==gi")
key("i", "<A-k>", "<Esc>:m .-2<CR>==gi") -- key("i", "<A-k>", "<Esc>:m .-2<CR>==gi")
key("v", "<A-j>", ":m '>+1<CR>gv=gv") key("v", "<A-j>", ":m '>+1<CR>gv=gv")
key("v", "<A-k>", ":m '<-2<CR>gv=gv") key("v", "<A-k>", ":m '<-2<CR>gv=gv")

View File

@ -0,0 +1,8 @@
{ config, pkgs, ... }: {
home-manager.users.${config.user}.home.packages = with pkgs; [
python310 # Standard Python interpreter
nodePackages.pyright # Python language server
];
}

View File

@ -11,10 +11,9 @@
body = '' body = ''
set projdir ( \ set projdir ( \
fd \ fd \
--search-path $HOME \ --search-path $HOME/dev \
--type directory \ --type directory \
--hidden \ --hidden \
--exclude ".local/**" \
"^.git\$" \ "^.git\$" \
| xargs dirname \ | xargs dirname \
| fzf) | fzf)

View File

@ -18,6 +18,7 @@
grw = "gh run watch"; grw = "gh run watch";
grf = "gh run view --log-failed"; grf = "gh run view --log-failed";
grl = "gh run view --log"; grl = "gh run view --log";
ghpr = "gh pr create && sleep 3 && gh run watch";
}; };
functions = { functions = {
repos = { repos = {