2023-03-20 10:51:22 +00:00
|
|
|
diff --git a/autoload/health/openscad_nvim.vim b/autoload/health/openscad_nvim.vim
|
2024-03-16 12:19:54 +00:00
|
|
|
index d6d4b4c..9853877 100644
|
2023-03-20 10:51:22 +00:00
|
|
|
--- a/autoload/health/openscad_nvim.vim
|
|
|
|
+++ b/autoload/health/openscad_nvim.vim
|
|
|
|
@@ -7,7 +7,7 @@ function! s:check_nvim_version_minimum() abort
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! s:check_zathura_installed() abort
|
|
|
|
- if !executable('zathura')
|
2023-05-13 17:57:33 +00:00
|
|
|
+ if !executable('@zathura@')
|
2024-03-16 12:19:54 +00:00
|
|
|
call v:lua.vim.health.error('has(zathura)','install zathura')
|
2023-03-20 10:51:22 +00:00
|
|
|
else
|
2024-03-16 12:19:54 +00:00
|
|
|
call v:lua.vim.health.ok("zathura is installed")
|
2023-03-20 10:51:22 +00:00
|
|
|
@@ -15,7 +15,7 @@ function! s:check_zathura_installed() abort
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! s:check_htop_installed() abort
|
|
|
|
- if !executable('htop')
|
2023-05-13 17:57:33 +00:00
|
|
|
+ if !executable('@htop@')
|
2024-03-16 12:19:54 +00:00
|
|
|
call v:lua.vim.health.error('has(htop)','install htop')
|
2023-03-20 10:51:22 +00:00
|
|
|
else
|
2024-03-16 12:19:54 +00:00
|
|
|
call v:lua.vim.health.ok("htop is installed")
|
2023-03-20 10:51:22 +00:00
|
|
|
diff --git a/lua/openscad.lua b/lua/openscad.lua
|
2024-04-19 06:37:41 +00:00
|
|
|
index 0a26d08..1264989 100644
|
2023-03-20 10:51:22 +00:00
|
|
|
--- a/lua/openscad.lua
|
|
|
|
+++ b/lua/openscad.lua
|
|
|
|
@@ -101,7 +101,7 @@ end
|
|
|
|
|
|
|
|
function M.manual()
|
|
|
|
local path = U.openscad_nvim_root_dir .. U.path_sep .. "help_source" .. U.path_sep .. "openscad-manual.pdf"
|
|
|
|
- api.nvim_command('silent !zathura --fork ' .. path)
|
2023-05-13 17:57:33 +00:00
|
|
|
+ api.nvim_command('silent !@zathura@ --fork ' .. path)
|
2023-03-20 10:51:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function M.help()
|
2024-04-19 06:37:41 +00:00
|
|
|
@@ -126,7 +126,7 @@ function M.exec_openscad()
|
|
|
|
jobCommand = '/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD ' .. filename
|
2023-05-13 17:57:33 +00:00
|
|
|
else
|
|
|
|
-- TODO: What about Windows?
|
2024-04-19 06:37:41 +00:00
|
|
|
- jobCommand = 'openscad ' .. filename
|
|
|
|
+ jobCommand = '@openscad@ ' .. filename
|
2023-05-13 17:57:33 +00:00
|
|
|
end
|
2023-03-20 10:51:22 +00:00
|
|
|
|
2023-05-13 17:57:33 +00:00
|
|
|
vim.fn.jobstart(jobCommand)
|