mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
python and other fixes
This commit is contained in:
parent
c4ee4cafa5
commit
85116fc8fd
@ -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
|
||||||
];
|
];
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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")
|
||||||
|
|
||||||
|
8
modules/programming/python.nix
Normal file
8
modules/programming/python.nix
Normal 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
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
@ -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)
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user