Skip to content

Commit

Permalink
fix: replace deprecated vim.loop with vim.uv
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jun 24, 2023
1 parent 45449ad commit 1f043c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/quarto/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function M.quartoPreview()
cmd = 'quarto preview'
else
mode = "file"
if vim.loop.os_uname().sysname == "Windows_NT" then
if vim.uv.os_uname().sysname == "Windows_NT" then
cmd = 'quarto preview \\"' .. buffer_path .. '\\"'
else
cmd = 'quarto preview \'' .. buffer_path .. '\''
Expand Down Expand Up @@ -93,7 +93,7 @@ end
M.searchHelp = function(cmd_input)
local topic = cmd_input.args
local url = 'https://quarto.org/?q=' .. topic .. '&show-results=1'
local sysname = vim.loop.os_uname().sysname
local sysname = vim.uv.os_uname().sysname
local cmd
if sysname == "Linux" then
cmd = 'xdg-open "' .. url .. '"'
Expand Down

0 comments on commit 1f043c8

Please sign in to comment.