nvimConfig/lua
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel 6142f7d55e fix: harden REPL/terminal code-sending paths
- lua/keymap/repl.lua
  - Replace non-existent `:SlimeSendCurrentLine` with synchronous
    `vim.fn["slime#send"](line .. "\n")` fallback.
  - Support both modern `r.send` and older `r.run` R.nvim Lua APIs,
    falling back to `<Plug>` mappings if neither module is available.

- lua/nix_smart_send.lua
  - Refactor `send_repl()` to extract Tree-sitter node text and send it
    directly via `slime#send`, eliminating the `feedkeys(..., "x", true)`
    race between visual selection and cursor movement.
  - Replace internal `slime#send_op` call in `slime_send_region()` with the
    public `<Plug>SlimeRegionSend` mapping.
  - Improve `move_to_next_non_empty_line()` to walk up the AST when a
    node has no next sibling, so the cursor escapes nested blocks.

- plugin/03_terminal.lua
  - Set `vim.g.slime_target = "neovim"` at the top of the module so the
    target is guaranteed before any slime send.

- plugin/21_datascience.lua
  - Remove duplicate `vim.g.slime_target = "neovim"` now that the
    terminal module owns the setting.
2026-07-26 06:57:57 +00:00
..
config refactor: improve Neovim/Nix config for quant econ workflow 2026-07-26 06:35:52 +00:00
keymap fix: harden REPL/terminal code-sending paths 2026-07-26 06:57:57 +00:00
nixCatsUtils init wrapper-module config 2026-01-30 14:22:39 +11:00
nix_smart_send.lua fix: harden REPL/terminal code-sending paths 2026-07-26 06:57:57 +00:00