From 0806dd055c2855a0611c8857a19cdab566909442 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 21 May 2024 22:24:21 +0200 Subject: nixvim: use vim.ui.open for :Browse --- common/nixvim.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'common') diff --git a/common/nixvim.nix b/common/nixvim.nix index 7735a75..ba6a8c5 100644 --- a/common/nixvim.nix +++ b/common/nixvim.nix @@ -545,14 +545,8 @@ in -- For fugitive's :GBrowse - vim.api.nvim_create_user_command("Browse", function(opts) - local Job = require('plenary.job') - - Job:new({ - command = 'xdg-open', - args = { opts.args }, - }):start() + vim.ui.open(opts.args) end, { nargs = 1 }) ''; }; -- cgit v1.2.3