From afde613f6c2a392b6bae2f1be7095776e9e8e928 Mon Sep 17 00:00:00 2001 From: John Practicalli <250870+practicalli-john@users.noreply.github.com> Date: Thu, 23 Nov 2023 00:03:01 +0000 Subject: [PATCH] post: update 22 november post neovim treesitter-sexp example plug code for Astronvim updated post title to cover all topics --- docs/posts/2023/november-22.md | 35 +++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/docs/posts/2023/november-22.md b/docs/posts/2023/november-22.md index 79fa0f23..142f4f95 100644 --- a/docs/posts/2023/november-22.md +++ b/docs/posts/2023/november-22.md @@ -1,5 +1,5 @@ --- -title: "Onboarding to a new role" +title: "Onboarding to a new role, hacking Clojure & Neovim" date: 2023-11-22 categories: - journal @@ -32,7 +32,7 @@ The mulog maintainer created the [where project](https://github.com/BrunoBonacci !!! EXAMPLE "where is a DSL for powerful predicate functions" ```clojure - (u/start-publisher! + (mulog/start-publisher! {:type :console :pretty? true :transform @@ -59,9 +59,38 @@ Neovim commands to investigate further - `:help Explore` and related commands - `:help usr_22` has a good introduction - [Clojurians Slack - navigating code in neovim discussion](https://clojurians.slack.com/archives/C0DF8R51A/p1700651248926689){target=_blank .md-button} +!!! TODO "Neovim plugin: nvim-treesitter-sexp" + Evalaute the [nvim-treesitter-sexp](https://github.com/PaterJason/nvim-treesitter-sexp) plugin with the Practialli AstorNvim User configuration and see if it is a valuable way to navigate Clojure expressions. + + ```lua title="plugins/clojure.lua" + return { + { + "PaterJason/nvim-treesitter-sexp", + ft = { "clojure", "fennel", "janet" }, + opts = { + -- configuration: + -- https://github.com/PaterJason/nvim-treesitter-sexp#configuration + enabled = true, + set_cursor = true, + keymaps = { + commands = { + promote_elem = "kO", + promote_form = "ko", + splice = "k@", + }, + motions = {}, + textobjects = {}, + }, + }, + }, + } + ``` + + If the plugin is successful, add it to the AstroNvim Community Clojure pack + + ## New role I'm starting a new role (references allowing) as an Engineering Manager at a very nice Fintech company.