<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lua on Yet another trashy dev blog</title><link>https://blog.kalilarosa.xyz/categories/lua/</link><description>Recent content in Lua on Yet another trashy dev blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 06 Sep 2025 17:36:04 -0500</lastBuildDate><atom:link href="https://blog.kalilarosa.xyz/categories/lua/index.xml" rel="self" type="application/rss+xml"/><item><title>autogroup</title><link>https://blog.kalilarosa.xyz/configs/glaze-me/</link><pubDate>Fri, 05 Sep 2025 11:11:22 -0500</pubDate><guid>https://blog.kalilarosa.xyz/configs/glaze-me/</guid><description>&lt;h1 id="get-glazed-like-the-goat-it-will-not-have-any-consequences"&gt;Get Glazed like the Goat, It will not have any consequences.&lt;/h1&gt;&#10;&lt;p&gt;I find that one thing that anyone would love to have is a bot whose only job is to glaze you.&#10;So the goal of this recipe is to do just that, but also give you some tips about how to use neovim.&#10;First make a lua file called glaze-me.lua, or call it anything you like.&#10;It should be in your &lt;code&gt;after/plugin&lt;/code&gt; directory.&lt;/p&gt;</description></item><item><title>norbsidian</title><link>https://blog.kalilarosa.xyz/configs/norbsidian/</link><pubDate>Thu, 04 Sep 2025 23:59:05 -0500</pubDate><guid>https://blog.kalilarosa.xyz/configs/norbsidian/</guid><description>&lt;h1 id="this-is-some-expert-tier-exporting"&gt;This Is some expert tier exporting&lt;/h1&gt;&#10;&lt;p&gt;So one thing I had a problem with is getting my neorg notes to export to obsidian without manually having to specify the directory that it will be exported to. So here is a recipe for a script that I wrote for my neovim config that does just that.&lt;/p&gt;&#10;&lt;h2 id="pragma"&gt;Pragma&lt;/h2&gt;&#10;&lt;p&gt;We start offcreate some tables and load in some libraries&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;local&lt;/span&gt; &lt;span class="n"&gt;norbsidian&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;local&lt;/span&gt; &lt;span class="n"&gt;builtins&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;telescope.builtin&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;local&lt;/span&gt; &lt;span class="n"&gt;pickers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;telescope.pickers&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="i-am-now-going-to-define-this-here-class-and-function"&gt;I am now going to define this here class and function&lt;/h2&gt;&#10;&lt;p&gt;Now the NorbOptions class is a secret mousekatool to use later more on that later, but the norbsidian_export_template function just takes the inputs and gives us a pure function that will always generate the proper export.&lt;/p&gt;</description></item></channel></rss>