Slightly nicer obsidian config, I guess
This is the first time I'm commiting to this repository using colemak-dh om my ferris sweep keyboard!
This commit is contained in:
parent
9f751afced
commit
6083cba5d6
|
@ -222,6 +222,9 @@ in
|
||||||
# Do not restore sessions after what looks like a "crash"
|
# Do not restore sessions after what looks like a "crash"
|
||||||
"browser.sessionstore.resume_from_crash" = false;
|
"browser.sessionstore.resume_from_crash" = false;
|
||||||
|
|
||||||
|
# Do not paste with middle mouse click
|
||||||
|
"middlemouse.paste" = false;
|
||||||
|
|
||||||
# Inspired by https://github.com/TLATER/dotfiles/blob/b39af91fbd13d338559a05d69f56c5a97f8c905d/home-config/config/graphical-applications/firefox.nix
|
# Inspired by https://github.com/TLATER/dotfiles/blob/b39af91fbd13d338559a05d69f56c5a97f8c905d/home-config/config/graphical-applications/firefox.nix
|
||||||
# {{{ Performance settings
|
# {{{ Performance settings
|
||||||
"gfx.webrender.all" = true; # Force enable GPU acceleration
|
"gfx.webrender.all" = true; # Force enable GPU acceleration
|
||||||
|
|
|
@ -73,4 +73,8 @@ M.text = conditions.make_condition(function()
|
||||||
end)
|
end)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
M.never = conditions.make_condition(function()
|
||||||
|
return false
|
||||||
|
end)
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -19,6 +19,7 @@ let
|
||||||
{ tempestModule = "my.tempest"; };
|
{ tempestModule = "my.tempest"; };
|
||||||
|
|
||||||
mirosSnippetCache = "${config.xdg.cacheHome}/miros";
|
mirosSnippetCache = "${config.xdg.cacheHome}/miros";
|
||||||
|
obsidianVault = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/stellar-sanctum";
|
||||||
|
|
||||||
generated = nlib.generateConfig
|
generated = nlib.generateConfig
|
||||||
(lib.fix (self: with nlib; {
|
(lib.fix (self: with nlib; {
|
||||||
|
@ -88,10 +89,17 @@ let
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Starter page
|
# {{{ Starter page
|
||||||
callback = thunk ''
|
callback = thunk /* lua */''
|
||||||
require("my.starter").setup(${encode {
|
local cwd = vim.loop.cwd()
|
||||||
header = builtins.readFile ./header.txt;
|
local header
|
||||||
}})
|
|
||||||
|
if cwd == ${encode obsidianVault} then
|
||||||
|
header = ${encode (builtins.readFile ./headers/obsidian.txt)}
|
||||||
|
else
|
||||||
|
header = ${encode (builtins.readFile ./headers/main.txt)}
|
||||||
|
end
|
||||||
|
|
||||||
|
require("my.starter").setup({ header = header })
|
||||||
'';
|
'';
|
||||||
# }}}
|
# }}}
|
||||||
};
|
};
|
||||||
|
@ -1421,9 +1429,7 @@ let
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ obsidian
|
# {{{ obsidian
|
||||||
obsidian =
|
obsidian =
|
||||||
let
|
let dateFormat = "%Y-%m-%d";
|
||||||
vault = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/stellar-sanctum";
|
|
||||||
dateFormat = "%Y-%m-%d";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
package = "epwalsh/obsidian.nvim";
|
package = "epwalsh/obsidian.nvim";
|
||||||
|
@ -1432,7 +1438,7 @@ let
|
||||||
event = "VeryLazy";
|
event = "VeryLazy";
|
||||||
cond = [
|
cond = [
|
||||||
(blacklist [ "vscode" "firenvim" ])
|
(blacklist [ "vscode" "firenvim" ])
|
||||||
(lua /* lua */ "vim.loop.cwd() == ${encode vault}")
|
(lua /* lua */ "vim.loop.cwd() == ${encode obsidianVault}")
|
||||||
];
|
];
|
||||||
|
|
||||||
config.keys =
|
config.keys =
|
||||||
|
@ -1451,7 +1457,7 @@ let
|
||||||
];
|
];
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
dir = vault;
|
dir = obsidianVault;
|
||||||
notes_subdir = "chaos";
|
notes_subdir = "chaos";
|
||||||
|
|
||||||
daily_notes = {
|
daily_notes = {
|
||||||
|
|
11
home/features/neovim/headers/obsidian.txt
Normal file
11
home/features/neovim/headers/obsidian.txt
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
░ ░░ ░░░░ ░░ ░░░░░░░░░░░░░░░ ░░░ ░░ ░░ ░░░░░░░░ ░░░░░░░░░ ░░░ ░░
|
||||||
|
▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒
|
||||||
|
▓▓▓▓ ▓▓▓▓▓ ▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▓▓▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓ ▓▓ ▓▓
|
||||||
|
████ █████ ████ ██ ██████████████████████████ █████ █████ ████████ ████████ ████████ ██ ███ ██
|
||||||
|
████ █████ ████ ██ ███████████████ ██████ █████ ██ ██ ██ ████ ██ ████ █
|
||||||
|
|
||||||
|
░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░ ░░░ ░░░ ░░░ ░░░ ░░ ░░░░ ░░ ░░░░ ░░░░░░░░░░░░░░░░░░░
|
||||||
|
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒ ▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||||
|
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓ ▓▓▓▓ ▓▓ ▓ ▓ ▓▓ ▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓ ▓▓▓▓ ▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||||
|
███████████████████████████████ ██ ██ ██ ██ ████ █████ █████ ████ ██ █ █ ███████████████████
|
||||||
|
██████████████████████████ ███ ████ ██ ███ ███ ██████ ██████ ███ ████ ███████████████████
|
|
@ -6,7 +6,7 @@ block auto start
|
||||||
$0
|
$0
|
||||||
]
|
]
|
||||||
|
|
||||||
for proofenv <- @⟨proof,solution⟩
|
for proofenv <- @⟨proof,solution,exercise,example⟩
|
||||||
string @proofenv
|
string @proofenv
|
||||||
snip
|
snip
|
||||||
#@proofenv$|1⟨$1,(name: "$1")⟩[
|
#@proofenv$|1⟨$1,(name: "$1")⟩[
|
||||||
|
@ -42,11 +42,6 @@ block auto
|
||||||
name definite integral
|
name definite integral
|
||||||
snip ∫_$|1⟨$1,(-∞$1)⟩^$|2⟨$2,∞$2⟩ $3 dif $0
|
snip ∫_$|1⟨$1,(-∞$1)⟩^$|2⟨$2,∞$2⟩ $3 dif $0
|
||||||
|
|
||||||
block !word
|
|
||||||
abbr .inv ^(-1)
|
|
||||||
abbr .neg _-
|
|
||||||
abbr .pos _+
|
|
||||||
|
|
||||||
for limtarget <- @⟨anything,zero,infinity,negative infinity⟩
|
for limtarget <- @⟨anything,zero,infinity,negative infinity⟩
|
||||||
for prefix <- @⟨@limtarget:,z,i,n⟩
|
for prefix <- @⟨@limtarget:,z,i,n⟩
|
||||||
for limtargetsymbol <- @⟨@limtarget:$2,0,∞,-∞⟩
|
for limtargetsymbol <- @⟨@limtarget:$2,0,∞,-∞⟩
|
||||||
|
@ -73,3 +68,41 @@ block auto
|
||||||
string cr@operator
|
string cr@operator
|
||||||
name start with @operator
|
name start with @operator
|
||||||
snip \ &@symbol $0
|
snip \ &@symbol $0
|
||||||
|
|
||||||
|
block never
|
||||||
|
pattern (.*)e@⟨t(%a),(%d)⟩
|
||||||
|
name auto exponent
|
||||||
|
snip @0^@1 $0
|
||||||
|
|
||||||
|
pattern (.*)so(%a)
|
||||||
|
name auto subscript
|
||||||
|
snip @0_@1 $0
|
||||||
|
|
||||||
|
pattern ([%a]+)(%d)
|
||||||
|
name auto digt subscript
|
||||||
|
snip @0_@1 $0
|
||||||
|
|
||||||
|
string ss
|
||||||
|
name subscript
|
||||||
|
snip _{$1} $0
|
||||||
|
|
||||||
|
string ee
|
||||||
|
name exponent
|
||||||
|
snip ^($1) $0
|
||||||
|
|
||||||
|
pattern (%a)(.)pp
|
||||||
|
name auto function call
|
||||||
|
snip @0(@1) $0
|
||||||
|
|
||||||
|
pattern (%a)d(.)p
|
||||||
|
name auto derivative call
|
||||||
|
snip @0'(@1) $0
|
||||||
|
|
||||||
|
pattern (%a)i(.)p
|
||||||
|
name auto preimage call
|
||||||
|
snip @0^(-1)(@1) $0
|
||||||
|
|
||||||
|
block !word
|
||||||
|
abbr .inv ^(-1)
|
||||||
|
abbr .neg _-
|
||||||
|
abbr .pos _+
|
||||||
|
|
Loading…
Reference in a new issue