From 24174247f7b9a88895b1836fd93c5c67add6ab6f Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sun, 25 Jun 2023 17:02:05 +1000 Subject: [PATCH] reduce neovim version requirement --- .github/workflows/panvimdoc.yml | 2 +- README.org | 2 +- lua/orgmode-babel/init.lua | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/panvimdoc.yml b/.github/workflows/panvimdoc.yml index 4d8de6c..54f05ed 100644 --- a/.github/workflows/panvimdoc.yml +++ b/.github/workflows/panvimdoc.yml @@ -17,7 +17,7 @@ jobs: vimdoc: orgmode-babel.nvim # The following are all optional pandoc: "README.md" - version: "NVIM v0.10.0" + version: "NVIM v0.9.0" toc: true treesitter: true - uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/README.org b/README.org index 0a2b6c6..c2458bd 100644 --- a/README.org +++ b/README.org @@ -13,7 +13,7 @@ you to add anything extra to your ~init.el~. - [[https://github.com/nvim-orgmode/orgmode][nvim-orgmode]] - [[https://github.com/nvim-treesitter/nvim-treesitter][nvim-treesitter]] -- Neovim v0.10.0 or later +- Neovim v0.9.0 or later - A working ~emacs~ installation (does not require configuration) ** Setup diff --git a/lua/orgmode-babel/init.lua b/lua/orgmode-babel/init.lua index 33d7cc0..24ec620 100644 --- a/lua/orgmode-babel/init.lua +++ b/lua/orgmode-babel/init.lua @@ -248,9 +248,9 @@ vim.api.nvim_create_user_command("OrgExecute", function(el) -- vim.notify(cmd, vim.log.levels.DEBUG) - local ouput = vim.system(cmd):wait() + local output = vim.fn.system(cmd) - vim.print(ouput.stdout, ouput.stderr) + vim.print(output) if not vim.bo[bufnr].modified then vim.cmd(bufnr .. "bufdo edit") @@ -350,9 +350,9 @@ vim.api.nvim_create_user_command("OrgTangle", function(el) -- vim.notify(cmd, vim.log.levels.DEBUG) - local ouput = vim.system(cmd):wait() + local output = vim.fn.system(cmd) - vim.print(ouput.stdout, ouput.stderr) + vim.print(output) end, { range = "%", bang = true,