Compare commits

..

No commits in common. "5f0a2ff63120e0e5dba7cf79054bc2bec6b446aa" and "913c37e3c461b5387fd462c76bb88c43dc7a75b8" have entirely different histories.

3 changed files with 12 additions and 22 deletions

View file

@ -70,20 +70,18 @@ end
vim.cmd.colorscheme "catppuccin"
function set_theme_according_to_darkman()
if vim.fn.executable("darkman") == 1 then
local obj = vim.system({ 'darkman', 'get' }, { text = true }):wait()
if obj.code == 0 then
local theme = "light"
if obj.stdout == "dark\n" then
theme = "dark"
end
if obj.stdout == "light\n" then
theme = "light"
end
opt.background = theme
vim.api.nvim_exec_autocmds("ColorScheme", {})
local obj = vim.system({ 'darkman', 'get' }, { text = true }):wait()
if obj.code == 0 then
local theme = "light"
if obj.stdout == "dark\n" then
theme = "dark"
end
if obj.stdout == "light\n" then
theme = "light"
end
opt.background = theme
vim.api.nvim_exec_autocmds("ColorScheme", {})
end
end

View file

@ -33,7 +33,7 @@ snippet flake
let
pkgs = nixpkgs.legacyPackages.\${system};
in
rec {
{
packages = rec {
$1 = pkgs.stdenv.mkDerivation {
name = "$1";
@ -43,12 +43,6 @@ snippet flake
};
default = $1;
};
devShells.default = {
inputsFrom = [ packages.default ];
packages = with pkgs; [
$3
];
};
}
);
}

View file

@ -1,2 +0,0 @@
snippet exception Exception statement
Exception(f"$1")