<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Neovim on Miek Gieben</title>
    <link>https://miek.nl/tags/neovim/</link>
    <description>Recent content in Neovim on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Thu, 09 Apr 2026 20:38:06 +0200</lastBuildDate>
    <atom:link href="https://miek.nl/tags/neovim/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Testscript highlighting in Neovim</title>
      <link>https://miek.nl/2026/april/09/testscript-highlighting-in-neovim/</link>
      <pubDate>Thu, 09 Apr 2026 20:38:06 +0200</pubDate>
      <guid>https://miek.nl/2026/april/09/testscript-highlighting-in-neovim/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://blog.windpul.eu/posts/testscript/&#34;&gt;This is a good article&lt;/a&gt; on how to use &lt;em&gt;testscript&lt;/em&gt; in Go(lang). It&#xA;also goes as far as &lt;a href=&#34;https://blog.windpul.eu/posts/testscript/#bonus-neovim-syntax-highlighting&#34;&gt;adding a syntax&#xA;file&lt;/a&gt;. But I&amp;rsquo;m 100% into Neovim,&#xA;so this needs to be tree-sitter grammar on my system.&lt;/p&gt;&#xA;&lt;p&gt;Well&amp;hellip; this was a journey and I needed claude.ai for a lot of stuff to pull it off.&#xA;I &lt;em&gt;also&lt;/em&gt; wanted to insert Go syntax highlighting for Go blocks, like in this file.&lt;/p&gt;&#xA;&lt;p&gt;This is working on Fedora 43 and Ubuntu 26.04 and depends on a up-to-date &lt;code&gt;tree-sitter-cli&lt;/code&gt; as this is the&#xA;main way of generating the parser.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Matchup in Neovim for Go templates</title>
      <link>https://miek.nl/2024/december/07/matchup-in-neovim-for-go-templates/</link>
      <pubDate>Sat, 07 Dec 2024 12:04:24 +0100</pubDate>
      <guid>https://miek.nl/2024/december/07/matchup-in-neovim-for-go-templates/</guid>
      <description>&lt;p&gt;After dealing with &lt;a href=&#34;https://pkg.go.dev/text/template&#34;&gt;Go templates&lt;/a&gt; (also HTML templates) for more&#xA;than a year and keep loosing track of where each block &lt;code&gt;{{end}}s&lt;/code&gt; I finally &lt;a href=&#34;https://mastodon.cloud/@miek/113606613003828116&#34;&gt;did something about&#xA;it&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But that didn&amp;rsquo;t work that good. So I&amp;rsquo;ve switch to the&#xA;&lt;a href=&#34;https://github.com/andymass/vim-matchup&#34;&gt;match-up&lt;/a&gt; plugin, which is better than the built-in&#xA;&lt;code&gt;matchit&lt;/code&gt; that I was using previously. With Neovim I&amp;rsquo;m using this setup:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Plug&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;andymass/vim-matchup&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And this extra bit of config:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-lua&#34; data-lang=&#34;lua&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;require&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;nvim-treesitter.configs&amp;#39;&lt;/span&gt;.setup {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  matchup &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    enable &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  },&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This in itself does not make template matching work, for this I just copied the&#xA;&lt;a href=&#34;https://github.com/andymass/vim-matchup/wiki/The-match-up-wiki#hugo&#34;&gt;Hugo template matcher&lt;/a&gt;&#xA;(which is just like Go templating) to the correct place. Doing this with &lt;em&gt;some&lt;/em&gt; automation from&#xA;inside Neovim:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nvim Debian Pkg</title>
      <link>https://miek.nl/2023/september/10/nvim-debian-pkg/</link>
      <pubDate>Sun, 10 Sep 2023 11:20:31 +0200</pubDate>
      <guid>https://miek.nl/2023/september/10/nvim-debian-pkg/</guid>
      <description>&lt;p&gt;NVIM stopped making Debian packages a while back, so here is a short note on how to&#xA;do this yourself. Had a hard time finding this info, hence reproduced here. Assuming you&amp;rsquo;ve&#xA;got the source.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;make CMAKE_BUILD_TYPE=Release&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;cd build &amp;amp;&amp;amp; cpack -G DEB&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo dpkg -i nvim-linux64.deb&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&amp;hellip; and of course you then find the &lt;a href=&#34;https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start&#34;&gt;authoritative&#xA;text&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you use &lt;code&gt;RelWithDebInfo&lt;/code&gt; an ever growing log file will be created in &lt;code&gt;~/.local/state/nvim/log&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
