Skip to content

Commit d8ed1b3

Browse files
committed
Changed all the code blocks to Hugo Shortcodes.
1 parent 372ced7 commit d8ed1b3

17 files changed

+86
-93
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<!--
2222
Made with Book Theme

docs/basic-plugin/hidden/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1818

1919

20-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
20+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2121

2222
<!--
2323
Made with Book Theme
@@ -133,8 +133,8 @@ <h2 class="book-brand">
133133

134134

135135

136-
<a href="/docs/buffers-and-windows/" >
137-
Buffers and Windows
136+
<a href="/docs/job-control/" >
137+
Job Control
138138
</a>
139139

140140

@@ -159,8 +159,8 @@ <h2 class="book-brand">
159159

160160

161161

162-
<a href="/docs/job-control/" >
163-
Job Control
162+
<a href="/docs/buffers-and-windows/" >
163+
Buffers and Windows
164164
</a>
165165

166166

docs/basic-plugin/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/basic-plugin/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -133,8 +133,8 @@ <h2 class="book-brand">
133133

134134

135135

136-
<a href="/docs/buffers-and-windows/" >
137-
Buffers and Windows
136+
<a href="/docs/job-control/" >
137+
Job Control
138138
</a>
139139

140140

@@ -159,8 +159,8 @@ <h2 class="book-brand">
159159

160160

161161

162-
<a href="/docs/job-control/" >
163-
Job Control
162+
<a href="/docs/buffers-and-windows/" >
163+
Buffers and Windows
164164
</a>
165165

166166

docs/buffers-and-windows/index.html

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<meta name="description" content="Buffers and Windows"><meta property="og:title" content="" />
7+
<meta name="description" content="Buffers and Windows"><meta property="og:title" content="Buffers and Windows" />
88
<meta property="og:description" content="" />
99
<meta property="og:type" content="website" />
1010
<meta property="og:url" content="http://jacobsimpson.github.io/docs/buffers-and-windows/" />
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/buffers-and-windows/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -127,8 +127,8 @@ <h2 class="book-brand">
127127

128128

129129

130-
<a href="/docs/buffers-and-windows/" class="active">
131-
Buffers and Windows
130+
<a href="/docs/job-control/" >
131+
Job Control
132132
</a>
133133

134134

@@ -139,12 +139,6 @@ <h2 class="book-brand">
139139

140140

141141

142-
143-
<ul>
144-
145-
</ul>
146-
147-
148142

149143

150144
</li>
@@ -159,8 +153,8 @@ <h2 class="book-brand">
159153

160154

161155

162-
<a href="/docs/job-control/" >
163-
Job Control
156+
<a href="/docs/buffers-and-windows/" class="active">
157+
Buffers and Windows
164158
</a>
165159

166160

@@ -171,6 +165,12 @@ <h2 class="book-brand">
171165

172166

173167

168+
169+
<ul>
170+
171+
</ul>
172+
173+
174174

175175

176176
</li>
@@ -259,21 +259,18 @@ <h3 id="replacing-a-buffer">Replacing a Buffer</h3>
259259

260260
<h3 id="setting-options-on-a-buffer">Setting Options on a Buffer</h3>
261261

262-
<pre><code class="language-lua">vim.api.nvim_buf_set_option(statusBuffer, 'buftype', 'nofile')
263-
vim.api.nvim_buf_set_option(statusBuffer, 'filetype', 'lua')
264-
</code></pre>
262+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">vim.api.nvim_buf_set_option(statusBuffer, <span style="color:#e6db74">&#39;buftype&#39;</span>, <span style="color:#e6db74">&#39;nofile&#39;</span>)
263+
vim.api.nvim_buf_set_option(statusBuffer, <span style="color:#e6db74">&#39;filetype&#39;</span>, <span style="color:#e6db74">&#39;lua&#39;</span>)</code></pre></div>
265264

266265
<p>I would think that it would be possible to set the <code>modifiable</code> attribute in
267266
the same way as the attributes above, using <code>nvim_buf_set_option</code>, but I&rsquo;ve not
268267
been able to figure out the syntax for that. So, I do it this way:</p>
269268

270-
<pre><code class="language-lua">vim.api.nvim_command(&quot;setlocal nomodifiable&quot;)
271-
</code></pre>
269+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">vim.api.nvim_command(<span style="color:#e6db74">&#34;setlocal nomodifiable&#34;</span>)</code></pre></div>
272270

273271
<p>The name of a buffer is not a standard option, and has it&rsquo;s own function:</p>
274272

275-
<pre><code class="language-lua">vim.api.nvim_buf_set_name(statusBuffer, 'hg status')
276-
</code></pre>
273+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">vim.api.nvim_buf_set_name(statusBuffer, <span style="color:#e6db74">&#39;hg status&#39;</span>)</code></pre></div>
277274
</article>
278275

279276
<div class="book-footer justify-between">

docs/buffers-and-windows/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
4-
<title>Scripting Neovim with Lua</title>
4+
<title>Buffers and Windows on Scripting Neovim with Lua</title>
55
<link>http://jacobsimpson.github.io/docs/buffers-and-windows/</link>
6-
<description>Recent content on Scripting Neovim with Lua</description>
6+
<description>Recent content in Buffers and Windows on Scripting Neovim with Lua</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en-us</language>
99

docs/communicating/index.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/communicating/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -133,8 +133,8 @@ <h2 class="book-brand">
133133

134134

135135

136-
<a href="/docs/buffers-and-windows/" >
137-
Buffers and Windows
136+
<a href="/docs/job-control/" >
137+
Job Control
138138
</a>
139139

140140

@@ -159,8 +159,8 @@ <h2 class="book-brand">
159159

160160

161161

162-
<a href="/docs/job-control/" >
163-
Job Control
162+
<a href="/docs/buffers-and-windows/" >
163+
Buffers and Windows
164164
</a>
165165

166166

@@ -258,20 +258,17 @@ <h2 id="from-lua">From Lua</h2>
258258

259259
<h3 id="accessing-viml-variables">Accessing VimL Variables</h3>
260260

261-
<pre><code class="language-lua">local servername = vim.api.nvim_eval(&quot;v:servername&quot;)
262-
</code></pre>
261+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua"><span style="color:#66d9ef">local</span> servername <span style="color:#f92672">=</span> vim.api.nvim_eval(<span style="color:#e6db74">&#34;v:servername&#34;</span>)</code></pre></div>
263262

264263
<h3 id="calling-viml-functions">Calling VimL Functions</h3>
265264

266-
<pre><code class="language-lua">nvim_call_function(...)
267-
</code></pre>
265+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">nvim_call_function(...)</code></pre></div>
268266

269267
<h2 id="from-vimscript">From VimScript</h2>
270268

271269
<h3 id="calling-lua-code-from-viml">Calling Lua Code from VimL</h3>
272270

273-
<pre><code class="language-lua">nvim_execute_lua(...)
274-
</code></pre>
271+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">nvim_execute_lua(...)</code></pre></div>
275272
</article>
276273

277274
<div class="book-footer justify-between">

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -127,8 +127,8 @@ <h2 class="book-brand">
127127

128128

129129

130-
<a href="/docs/buffers-and-windows/" >
131-
Buffers and Windows
130+
<a href="/docs/job-control/" >
131+
Job Control
132132
</a>
133133

134134

@@ -153,8 +153,8 @@ <h2 class="book-brand">
153153

154154

155155

156-
<a href="/docs/job-control/" >
157-
Job Control
156+
<a href="/docs/buffers-and-windows/" >
157+
Buffers and Windows
158158
</a>
159159

160160

docs/interacting/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/interacting/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -127,8 +127,8 @@ <h2 class="book-brand">
127127

128128

129129

130-
<a href="/docs/buffers-and-windows/" >
131-
Buffers and Windows
130+
<a href="/docs/job-control/" >
131+
Job Control
132132
</a>
133133

134134

@@ -153,8 +153,8 @@ <h2 class="book-brand">
153153

154154

155155

156-
<a href="/docs/job-control/" >
157-
Job Control
156+
<a href="/docs/buffers-and-windows/" >
157+
Buffers and Windows
158158
</a>
159159

160160

docs/job-control/index.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="stylesheet" href="/book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css" integrity="sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY=">
1717

1818

19-
<script defer src="/en.search.min.839f2dba0cb3de6ef9ba220f9c62ed2324cd45180025044a6f8fbe7e10efa453.js" integrity="sha256-g58tugyz3m75uiIPnGLtIyTNRRgAJQRKb4&#43;&#43;fhDvpFM="></script>
19+
<script defer src="/en.search.min.f8bd81b39333232597285f6430d80a88189645cc0ef5fbd4d739512bc3d4aca6.js" integrity="sha256-&#43;L2Bs5MzIyWXKF9kMNgKiBiWRcwO9fvU1zlRK8PUrKY="></script>
2020

2121
<link rel="alternate" type="application/rss+xml" href="http://jacobsimpson.github.io/docs/job-control/index.xml" title="Scripting Neovim with Lua" />
2222
<!--
@@ -127,8 +127,8 @@ <h2 class="book-brand">
127127

128128

129129

130-
<a href="/docs/buffers-and-windows/" >
131-
Buffers and Windows
130+
<a href="/docs/job-control/" class="active">
131+
Job Control
132132
</a>
133133

134134

@@ -139,6 +139,12 @@ <h2 class="book-brand">
139139

140140

141141

142+
143+
<ul>
144+
145+
</ul>
146+
147+
142148

143149

144150
</li>
@@ -153,8 +159,8 @@ <h2 class="book-brand">
153159

154160

155161

156-
<a href="/docs/job-control/" class="active">
157-
Job Control
162+
<a href="/docs/buffers-and-windows/" >
163+
Buffers and Windows
158164
</a>
159165

160166

@@ -165,12 +171,6 @@ <h2 class="book-brand">
165171

166172

167173

168-
169-
<ul>
170-
171-
</ul>
172-
173-
174174

175175

176176
</li>
@@ -249,15 +249,13 @@ <h2 class="book-brand">
249249

250250
<h1 id="job-control">Job Control</h1>
251251

252-
<pre><code class="language-lua">vim.fn.jobstart(&quot;ls&quot;)
253-
</code></pre>
252+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-lua" data-lang="lua">vim.fn.jobstart(<span style="color:#e6db74">&#34;ls&#34;</span>)</code></pre></div>
254253

255254
<h2 id="networking-communication-and-job-control">Networking, Communication and Job Control</h2>
256255

257256
<h2 id="how-to-use-neovim-to-send-a-message-to-a-running-neovim-instance">How to use Neovim to send a message to a Running Neovim instance</h2>
258257

259-
<pre><code class="language-sh">nvim --noplugin --cmd &quot;lua vim.fn.rpcrequest(vim.fn.sockconnect('pipe', '/var/folders/nh/lwpxl66111j103y85rw0kdvw0000gn/T/nvimNdff2D/0', { rpc = true }), 'nvim_command', ':e ~/.zshrc')&quot; --cmd &quot;q&quot; --headless
260-
</code></pre>
258+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">nvim --noplugin --cmd <span style="color:#e6db74">&#34;lua vim.fn.rpcrequest(vim.fn.sockconnect(&#39;pipe&#39;, &#39;/var/folders/nh/lwpxl66111j103y85rw0kdvw0000gn/T/nvimNdff2D/0&#39;, { rpc = true }), &#39;nvim_command&#39;, &#39;:e ~/.zshrc&#39;)&#34;</span> --cmd <span style="color:#e6db74">&#34;q&#34;</span> --headless</code></pre></div>
261259
</article>
262260

263261
<div class="book-footer justify-between">

0 commit comments

Comments
 (0)