mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Use gx.nvim for browsing in Browser
This commit is contained in:
@@ -223,7 +223,12 @@ local plugin_specs = {
|
||||
-- For Windows and Mac, we can open an URL in the browser. For Linux, it may
|
||||
-- not be possible since we maybe in a server which disables GUI.
|
||||
{
|
||||
"tyru/open-browser.vim",
|
||||
"chrishrb/gx.nvim",
|
||||
keys = { { "gx", "<cmd>Browse<cr>", mode = { "n", "x" } } },
|
||||
cmd = { "Browse" },
|
||||
init = function()
|
||||
vim.g.netrw_nogx = 1 -- disable netrw gx
|
||||
end,
|
||||
enabled = function()
|
||||
if vim.g.is_win or vim.g.is_mac then
|
||||
return true
|
||||
@@ -231,7 +236,9 @@ local plugin_specs = {
|
||||
return false
|
||||
end
|
||||
end,
|
||||
event = "VeryLazy",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = true, -- default settings
|
||||
submodules = false, -- not needed, submodules are required only for tests
|
||||
},
|
||||
|
||||
-- Only install these plugins if ctags are installed on the system
|
||||
|
||||
Reference in New Issue
Block a user