diff --git a/flake.lock b/flake.lock index c6d7fce..f2b3856 100644 --- a/flake.lock +++ b/flake.lock @@ -1274,11 +1274,11 @@ "purifix": "purifix" }, "locked": { - "lastModified": 1728796450, - "narHash": "sha256-16AGyN4HddZXQFaxYZjPVYxSd4b2pKJ7wUwiNgHHXQs=", + "lastModified": 1728837827, + "narHash": "sha256-3BIeNuntiR0xrKIPNRbp7EInWRjgJ1LzWJI/HiQ68k0=", "owner": "prescientmoon", "repo": "miros", - "rev": "21e1332cc763049e27f6597967b3ac2f73fa7599", + "rev": "457414c4dd64dae05414f8e4181d8be7672fb89b", "type": "github" }, "original": { diff --git a/home/features/desktop/steam.nix b/home/features/desktop/steam.nix index 687db88..5b4a9d2 100644 --- a/home/features/desktop/steam.nix +++ b/home/features/desktop/steam.nix @@ -5,6 +5,7 @@ directories = [ ".factorio" "${config.xdg.dataHome}/Steam" + "${config.xdg.dataHome}/VVVVVV" ]; }; # }}} diff --git a/home/features/neovim/default.nix b/home/features/neovim/default.nix index 03b5db6..d4f4fbd 100644 --- a/home/features/neovim/default.nix +++ b/home/features/neovim/default.nix @@ -1025,11 +1025,13 @@ let ]; formatter = "purs-tidy"; }; + lua_ls.settings.Lua = { format.enable = true; # Do not send telemetry data containing a randomized but unique identifier telemetry.enable = false; }; + texlab.settings.texlab = { build = { args = [ @@ -1050,6 +1052,8 @@ let onEdit = true; }; }; + + nixd.offset_encoding = "utf-8"; nixd.settings.nixd = let satellite = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/satellite"; @@ -1067,10 +1071,13 @@ let home-manager.expr = ''(builtins.getFlake "${satellite}").homeConfigurations."${config.home.username}@${hostname}".options''; }; }; + + tinymist.settings.exportPdf = "onType"; + tinymist.offset_encoding = "utf-8"; + cssls = { }; jsonls = { }; dhall_lsp_server = { }; - typst_lsp.exportPdf = "onType"; elmls = { }; csharp_ls = { }; }; @@ -1426,7 +1433,7 @@ let package = "kaarmu/typst.vim"; dependencies.nix = lib.lists.optionals packedTargets.typst [ upkgs.typst - upkgs.typst-lsp + upkgs.tinymist upkgs.typstfmt ]; diff --git a/home/features/neovim/snippets/tex.miros b/home/features/neovim/snippets/tex.miros index 68406f4..50f00a2 100644 --- a/home/features/neovim/snippets/tex.miros +++ b/home/features/neovim/snippets/tex.miros @@ -1,18 +1,18 @@ -block text - import common/math-phrases - for thmenv <- @⟨theorem,lemma,exercise,definition,corollary,example⟩ for thmprefix <- @⟨@thmenv:thm,lem,exe,def,cor,exa⟩ block auto start + -- {{{ Environments string begin name environment snip \begin{$1} $0 \end{$1} + -- }}} block auto !math start + -- {{{ Environments & lists & their elements for env <- @⟨enumerate,itemize,align*⟩ string @⟨@env:olist,ulist,dm⟩ @@ -39,8 +39,12 @@ block auto !math start string item snip \item$|1⟨,[$1] $0⟩ + -- }}} block text + import common/math-phrases + + -- {{{ References string ref snip \ref{$1}$0 string r@thmprefix @@ -50,22 +54,25 @@ block text snip (\ref{$1})$0 string pr@thmprefix snip (\ref{@thmprefix:$1})$0 - - string quote - snip ``$1''$0 - string forcecr - snip {\ \\\\} - - pattern ([Ll]et) - name definition - snip @1 \$$1 = $2\$ @0 + -- }}} block auto + -- {{{ Delimiters + string " + name quote + snip ``$1''$0 + string $ name inline math snip \$$1\$$0 + -- }}} + + string forcecr + desc Force the content onto a new line + snip {\ \\\} block math + -- {{{ Sigma/Pi notation for shorthand <- @⟨sum,prod⟩ for symbol <- @⟨@shorthand:sigma,pi⟩ for operation <- @⟨@shorthand:sum,product⟩ @@ -73,7 +80,8 @@ block math name @symbol @operation desc Write out a @operation using big @symbol notation snip \\@symbol{$|1⟨$1 = $2,$1⟩}^$|2⟨{$2},\infty$2⟩ $0 - + -- }}} + -- {{{ Matrices for matkind <- @⟨matrix,determinant⟩ for matenv <- @⟨@matkind:bmatrix,vmatrix⟩ for shorthand <- @⟨@matkind:mat,det⟩ @@ -94,7 +102,8 @@ block math $4 & $5 & $6 \\\\ $7 & $8 & $9 \end{@matenv} - + -- }}} + -- {{{ Equations for createabbr <- @⟨false,true⟩ for operator <- @⟨@createabbr: @⟨eq,lt,gt⟩, @@ -132,7 +141,8 @@ block math $0 \end{array} \right\} - + -- }}} + -- {{{ Explanations block end for suffix <- @⟨add,sub,rmul,pow,inv⟩ string ex@suffix @@ -165,78 +175,90 @@ block math $$1$ is bounded, definition of $$1$, ⟩}}$0 + -- }}} + + block auto word + -- {{{ Shorthands + -- {{{ Constants + for constkind <- @⟨default,shortened⟩ + for constant <- @⟨@constkind: + @⟨star,delta,Delta,pi,tau,psi,phi,rho,sigma,alpha,beta,theta,gamma,omega,Omega,half,ordop,land,lor⟩, + @⟨lam,eps,iinf⟩ + ⟩ + for expansion <- @⟨@constkind: + @constant, + @⟨@constant:lambda,epsilon,ifty⟩ + ⟩ + + for operator <- @⟨,e,s⟩ + string @operator@constant + snip @⟨@operator:,^,_⟩\\@expansion + -- }}} + -- {{{ Logic + abbr frl \forall + abbr exs \exists + abbr nope \bot + abbr yee \top + -- }}} + -- {{{ Set-theory + abbr card \# + abbr ccap \cap + abbr ccup \cup + abbr iin \in + abbr nin \not\in + abbr nuls \varnothing + abbr ortco ^\bot + abbr sdiff \setminus + abbr sinter ^\circ + abbr smul \times + abbr speq \supseteq + abbr spt \supset + abbr sseq \subseteq + abbr sst \subset + -- }}} + -- {{{ Numbers + abbr niinf -\ifty + abbr eniinf ^{-\ifty} + abbr sniinf _{-\ifty} + abbr ccan \cancel + abbr mul \cdot + abbr nlnl \pm + abbr limsup \lim\sup + -- }}} + -- {{{ Misc + abbr oball \ball + abbr vsm \vecspace + abbr mangle \measuredangle + abbr com \circ + -- }}} + -- {{{ Fonts + abbr bb \mathbb + abbr cal \mathcal + -- }}} + -- }}} + -- {{{ Sets + for set <- @⟨N,Z,Q,I,R,C,P,F⟩ + abbr @⟨@set:nats,ints,rats,irats,rrea,comp,ppri,ffie⟩ \mathbb @set + + string set + desc Create a set by escaping the brackets + snip \{$1\} + -- }}} + -- {{{ Operators + for noperator <- @⟨ordop,land,lor,equiv,pmod,ldots,cdots,perp,angle,sup⟩ + abbr @noperator \\@noperator + + for operator <- @⟨overline,hat,bar,abs,norm,prob,diprod,sin,cos,sqrt,ln,lrb,zmod,gen,diam,prob⟩ + string @operator + snip \\@operator$|1⟨{$1}, $0⟩ + + for bioperator <- @⟨iprod,frac,binom,dist⟩ + string @bioperator + snip \\@bioperator$|1⟨ $1,{$1}⟩$|2⟨ $2,{$2}⟩ $0 + -- }}} block auto - block word - for constkind <- @⟨default,shortened⟩ - for constant <- @⟨@constkind: - @⟨star,delta,Delta,pi,tau,psi,phi,rho,sigma,alpha,beta,theta,gamma,omega,Omega,half,ordop,land,lor⟩, - @⟨lam,eps,iinf⟩ - ⟩ - for expansion <- @⟨@constkind: - @constant, - @⟨@constant:lambda,epsilon,ifty⟩ - ⟩ - - for operator <- @⟨,e,s⟩ - string @operator@constant - snip @⟨@operator:,^,_⟩\\@expansion - - abbr niinf -\ifty - abbr eniinf ^{-\ifty} - abbr sniinf _{-\ifty} - - abbr frl \forall - abbr exs \exists - - abbr card \# - abbr ccap \cap - abbr ccup \cup - abbr iin \in - abbr nin \not\in - abbr nuls \varnothing - abbr ortco ^\bot - abbr sdiff \setminus - abbr sinter ^\circ - abbr smul \times - abbr speq \supseteq - abbr spt \supset - abbr sseq \subseteq - abbr sst \subset - - abbr nope \bot - abbr yee \top - - abbr ccan \cancel - abbr com \circ - abbr limsup \lim\sup - abbr mangle \measuredangle - abbr mul \cdot - abbr nlnl \pm - abbr oball \ball - abbr vsm \vecspace - - abbr bb \mathbb - abbr cal \mathcal - - for set <- @⟨N,Z,Q,I,R,C,P,F⟩ - abbr @⟨@set:nats,ints,rats,irats,rrea,comp,ppri,ffie⟩ \mathbb @set - - for noperator <- @⟨ordop,land,lor,equiv,pmod,ldots,cdots,perp,lim,angle,sup⟩ - abbr @noperator \\@noperator - - for operator <- @⟨overline,hat,bar,abs,norm,prob,diprod,sin,cos,sqrt,ln,lrb,zmod,gen,diam,prob⟩ - string @operator - snip \\@operator$|1⟨{$1}, $0⟩ - - for bioperator <- @⟨iprod,frac,binom,dist⟩ - string @bioperator - snip \\@bioperator$|1⟨ $1,{$1}⟩$|2⟨ $2,{$2}⟩ $0 - - string set - desc Create a set by escaping the brackets - snip \{$1\} - + -- {{{ Subscripts & exponents pattern (.*)e@⟨t(%a),(%d)⟩ name auto exponent snip @0^@1 $0 @@ -256,25 +278,15 @@ block math 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 - + -- }}} + -- {{{ Postfix notation block !word abbr .inv ^{-1} abbr .neg _- abbr .pos _+ abbr .t ^T - + -- }}} + -- {{{ Limits & integrals for limtarget <- @⟨anything,zero,infinity,negative infinity⟩ for prefix <- @⟨@limtarget:,z,i,n⟩ for limtargetsymbol <- @⟨@limtarget:$2,0,\infty,-\infty⟩ @@ -289,3 +301,4 @@ block math string inti name indefinite integral snip \int $1 \dif $0 + -- }}} diff --git a/home/features/wayland/hyprland/hyprland.conf b/home/features/wayland/hyprland/hyprland.conf index f5611a2..e77453f 100644 --- a/home/features/wayland/hyprland/hyprland.conf +++ b/home/features/wayland/hyprland/hyprland.conf @@ -44,7 +44,6 @@ misc { # Configure the default hyprland branding disable_hyprland_logo = true disable_splash_rendering = true - # force_hypr_chan = true } animations { @@ -54,7 +53,7 @@ animations { } # Execute apps at launch -exec-once = foot & firefox & discocss & gtk-launch obsidiantui & gtk-launch smostui & Spotify +exec-once = foot & firefox & vesktop & gtk-launch obsidiantui & gtk-launch smostui & Spotify # Without this, xdg-open doesn't work exec = systemctl --user import-environment PATH && systemctl --user restart xdg-desktop-portal.service