diff --git a/neovim/.config/nvim/lua/user/utils.lua b/neovim/.config/nvim/lua/user/utils.lua index b9de4bb..08e33c7 100644 --- a/neovim/.config/nvim/lua/user/utils.lua +++ b/neovim/.config/nvim/lua/user/utils.lua @@ -52,13 +52,14 @@ M.lsp_organize_imports = function(bufnr, timeout) end M.open_url_in_browser = function(url) - -- TODO: implement windows support + local f + if vim.fn.has("win32") == 1 then - print("windows not supported, sorry") - return + f = io.popen("explorer " .. url, "r") + else + f = io.popen("xdg-open " .. url, "r") end - local f = io.popen("xdg-open " .. url, "r") f:close() end