Compare commits

..

No commits in common. "8b1032ebda163a0c4631572703f97d6c6073afcc" and "0f1cbe2e067f723b618f3ded5da9b4f099b508e9" have entirely different histories.

3 changed files with 35 additions and 54 deletions

View File

@ -33,8 +33,8 @@
"['<C-d>']" = dsl.rawLua "require('cmp').mapping.scroll_docs(-4)"; "['<C-d>']" = dsl.rawLua "require('cmp').mapping.scroll_docs(-4)";
"['<C-f>']" = dsl.rawLua "require('cmp').mapping.scroll_docs(4)"; "['<C-f>']" = dsl.rawLua "require('cmp').mapping.scroll_docs(4)";
"['<C-e>']" = dsl.rawLua "require('cmp').mapping.abort()"; "['<C-e>']" = dsl.rawLua "require('cmp').mapping.abort()";
"['<C-y>']" = dsl.rawLua "require('cmp').mapping.confirm({ behavior = require('cmp').ConfirmBehavior.Insert, select = true, }, { 'i', 'c' })"; "['<CR>']" = dsl.rawLua "require('cmp').mapping.confirm({ behavior = require('cmp').ConfirmBehavior.Replace, select = true, })";
"['<C-r>']" = dsl.rawLua "require('cmp').mapping.confirm({ behavior = require('cmp').ConfirmBehavior.Replace, select = true, }, { 'i', 'c' })"; "['<C-r>']" = dsl.rawLua "require('cmp').mapping.confirm({ behavior = require('cmp').ConfirmBehavior.Replace, select = true, })";
"['<Esc>']" = dsl.rawLua '' "['<Esc>']" = dsl.rawLua ''
function(_) function(_)
cmp.mapping({ cmp.mapping({
@ -44,7 +44,7 @@
vim.cmd("stopinsert") --- Abort and leave insert mode vim.cmd("stopinsert") --- Abort and leave insert mode
end end
''; '';
"['<C-k>']" = dsl.rawLua '' "['<C-l>']" = dsl.rawLua ''
cmp.mapping(function(_) cmp.mapping(function(_)
if require("luasnip").expand_or_jumpable() then if require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump() require("luasnip").expand_or_jump()

View File

@ -2,11 +2,8 @@
vim.keymap.set("n", "<Leader>gr", ":!gh browse %<CR><CR>", { silent = true }) vim.keymap.set("n", "<Leader>gr", ":!gh browse %<CR><CR>", { silent = true })
-- Pop a terminal to watch the current run -- Pop a terminal to watch the current run
local gitwatch = require("toggleterm.terminal").Terminal:new({ local gitwatch =
cmd = "fish --interactive --init-command 'gh run watch'", require("toggleterm.terminal").Terminal:new({ cmd = "fish --interactive --init-command 'gh run watch'" })
hidden = true,
direction = "float",
})
-- Set a toggle for this terminal -- Set a toggle for this terminal
function GITWATCH_TOGGLE() function GITWATCH_TOGGLE()
@ -14,4 +11,4 @@ function GITWATCH_TOGGLE()
end end
-- Keymap to toggle the run -- Keymap to toggle the run
vim.keymap.set("n", "<Leader>W", GITWATCH_TOGGLE) vim.keymap.set("n", "<Leader>gw", GITWATCH_TOGGLE)

View File

@ -1,50 +1,34 @@
{ {
description = "Python project flake"; description = "Python project flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs"; inputs.flake-utils.url = "github:numtide/flake-utils";
poetry2nix.url = "github:nix-community/poetry2nix"; inputs.nixpkgs.url = "github:NixOS/nixpkgs";
}; inputs.poetry2nix.url = "github:nix-community/poetry2nix";
outputs = outputs =
{ nixpkgs, poetry2nix, ... }:
let
projectDir = ./.;
supportedSystems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{ {
packages = forAllSystems ( self,
system: nixpkgs,
let flake-utils,
pkgs = import nixpkgs { poetry2nix,
inherit system; }:
overlays = [ poetry2nix.overlays.default ]; flake-utils.lib.eachDefaultSystem (
}; system:
in let
{ pkgs = import nixpkgs {
default = pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; }; inherit system;
} overlays = [ poetry2nix.overlay ];
); };
devShells = forAllSystems ( projectDir = ./.;
system: in
let {
pkgs = import nixpkgs { defaultPackage = pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; };
inherit system; devShells.default = pkgs.mkShell {
overlays = [ poetry2nix.overlays.default ]; buildInputs = [
}; (pkgs.poetry2nix.mkPoetryEnv { inherit projectDir; })
in pkgs.poetry
{ ];
default = pkgs.mkShell { };
buildInputs = [ }
(pkgs.poetry2nix.mkPoetryEnv { inherit projectDir; }) );
pkgs.poetry
];
};
}
);
};
} }