Compare commits
3 commits
913c37e3c4
...
5f0a2ff631
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f0a2ff631 | ||
|
|
5fbfe594d9 | ||
|
|
f65569dc50 |
3 changed files with 22 additions and 12 deletions
2
init.lua
2
init.lua
|
|
@ -70,6 +70,7 @@ 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"
|
||||
|
|
@ -83,6 +84,7 @@ function set_theme_according_to_darkman()
|
|||
opt.background = theme
|
||||
vim.api.nvim_exec_autocmds("ColorScheme", {})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
set_theme_according_to_darkman()
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ snippet flake
|
|||
let
|
||||
pkgs = nixpkgs.legacyPackages.\${system};
|
||||
in
|
||||
{
|
||||
rec {
|
||||
packages = rec {
|
||||
$1 = pkgs.stdenv.mkDerivation {
|
||||
name = "$1";
|
||||
|
|
@ -43,6 +43,12 @@ snippet flake
|
|||
};
|
||||
default = $1;
|
||||
};
|
||||
devShells.default = {
|
||||
inputsFrom = [ packages.default ];
|
||||
packages = with pkgs; [
|
||||
$3
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
2
snippets/python.snippets
Normal file
2
snippets/python.snippets
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
snippet exception Exception statement
|
||||
Exception(f"$1")
|
||||
Loading…
Add table
Add a link
Reference in a new issue