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/programming/nix.nix
../../modules/programming/terraform.nix
../../modules/programming/python.nix
../../modules/programming/lua.nix
../../modules/programming/kubernetes.nix
];

View File

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

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, lib, ... }: {
home-manager.users.${config.user} = {
@ -16,6 +16,11 @@
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
key("n", "<A-j>", ":m .+1<CR>==")
key("n", "<A-k>", ":m .-2<CR>==")
key("i", "<A-j>", "<Esc>:m .+1<CR>==gi")
key("i", "<A-k>", "<Esc>:m .-2<CR>==gi")
-- key("i", "<A-j>", "<Esc>:m .+1<CR>==gi")
-- key("i", "<A-k>", "<Esc>:m .-2<CR>==gi")
key("v", "<A-j>", ":m '>+1<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 = ''
set projdir ( \
fd \
--search-path $HOME \
--search-path $HOME/dev \
--type directory \
--hidden \
--exclude ".local/**" \
"^.git\$" \
| xargs dirname \
| fzf)

View File

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