From d3b438a5f049e3a5846e9f09bbdb4b4bce341341 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 Nov 2023 18:38:37 +0100 Subject: Typographical fixes --- src/blog/nvim-ts/final.lua.gsp | 2 +- src/blog/nvim-ts/index.gsp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/blog/nvim-ts/final.lua.gsp b/src/blog/nvim-ts/final.lua.gsp index 08ef220..e43ac16 100644 --- a/src/blog/nvim-ts/final.lua.gsp +++ b/src/blog/nvim-ts/final.lua.gsp @@ -4,7 +4,7 @@ vim.keymap.@span .fn {-set}(@span .str {-'n'}, lhs, @span .kw {-function}() @span .kw {-local} node @span .op {-=} ts_utils.@span .fn {-get_node_at_cursor}() @span .kw {-if} node @span .op {-==} @span .cnst {-nil} @span .kw {-then} - @span .fn {-error}(@span .str {-'No tree-sitter parser found.'}) + @span .fn {-error}(@span .str {-'No Tree-Sitter parser found.'}) @span .kw {-end} @span .kw {-while} node @span .op {-~=} @span .cnst {-nil} @span .op {-and} node:@span .fn {-type}() @span .op {-~=} @span .str {-'operation'} @span .kw {-do} diff --git a/src/blog/nvim-ts/index.gsp b/src/blog/nvim-ts/index.gsp index 98bd9bb..204718e 100644 --- a/src/blog/nvim-ts/index.gsp +++ b/src/blog/nvim-ts/index.gsp @@ -120,9 +120,9 @@ html lang="en" { keybinding where pressing the key combination provided as the first argument will replace the Git-Rebase command of the current line with the string provided in the second argument. The actual function to - perform this replacement isn’t implemented yet, so in it’s current state + perform this replacement isn’t implemented yet, so in its current state it will bind these keys to an empty function. We also pass a few - options to @code{-vim.keymap.set}, you can read more about these in + options to @code{-vim.keymap.set}; you can read more about these in @code{-:help vim.keymap.set} if you’re interested. } @@ -167,11 +167,11 @@ html lang="en" { p {- In the code above we got the node at our cursor, now we need to traverse - the m4_abbr(AST) to the operation node. We can call the @em{-:parent()} - method on our node in a loop to traverse up the tree until we reach our - target node. If our cursor isn’t on a valid line such as on a comment - or a blank line we won’t ever hit an operation node and will instead get - @code{-nil}, so we need to handle that case too. + the m4_abbr(AST) to the operation node. We can call the + @code{-:parent()} method on our node in a loop to traverse up the tree + until we reach our target node. If our cursor isn’t on a valid line + such as on a comment or a blank line we won’t ever hit an operation node + and will instead get @code{-nil}, so we need to handle that case too. } figure { -- cgit v1.2.3