Commit graph nvimConfig/plugin/21_datascience.lua
Author SHA1 Message 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
5269e76608 updates 2026-07-24 15:04:12 +10:00
db610620b3 large refactor 2026-05-23 21:59:54 +10:00
af6d975129 make quarto load optional on r or markdown cat 2026-05-21 21:15:50 +10:00
d23c7f6f51 load packages only if installed 2026-05-21 20:04:45 +10:00
07d2156dfb fixed R.nvim 2026-05-12 15:58:31 +10:00
Daniel Winkler
765d53a1b1 quarto setup 2026-01-31 17:28:09 +11:00
Daniel Winkler
7ac6c23c4b testing quarto 2026-01-31 16:58:12 +11:00
Daniel Winkler
fb277a755d quarto improvements 2026-01-31 16:30:27 +11:00
Daniel Winkler
91755583fd init wrapper-module config 2026-01-30 14:22:39 +11:00