diff --git a/lua/r/send.lua b/lua/r/send.lua index b8099780..0e74ff76 100644 --- a/lua/r/send.lua +++ b/lua/r/send.lua @@ -140,6 +140,9 @@ local function get_code_to_send(txt, row) row = end_row end + vim.print("lines: ", lines) + vim.print("row: ", row) + return lines, row end @@ -517,6 +520,7 @@ end M.line = function(m) local lnum = vim.api.nvim_win_get_cursor(0)[1] local line = vim.fn.getline(lnum) + local lang = get_lang() if lang == "chunk_child" then if type(m) == "boolean" and m then