From 31fcd6c1dfe47370ffc12835cb410a0cabe66cbc Mon Sep 17 00:00:00 2001 From: rmagillxyz Date: Thu, 27 May 2021 00:04:15 -0400 Subject: bug fix for netrw's gx command (#431) * open remote link in browser correctly with gx, not in a tmp file --- lua/settings.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/settings.lua') diff --git a/lua/settings.lua b/lua/settings.lua index fe82d9ed..b0b9f28a 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -34,7 +34,9 @@ vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shif vim.o.updatetime = 300 -- Faster completion vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else -vim.g.nvim_tree_disable_netrw = O.nvim_tree_disable_netrw +vim.g.nvim_tree_disable_netrw = O.nvim_tree_disable_netrw -- enable netrw for remote gx gf support (must be set before plugin's packadd) +vim.g.loaded_netrwPlugin = 1 -- needed for netrw gx command to open remote links in browser +vim.cmd('filetype plugin on') -- filetype detection -- vim.o.guifont = "JetBrainsMono\\ Nerd\\ Font\\ Mono:h18" -- vim.o.guifont = "Hack\\ Nerd\\ Font\\ Mono" -- vim.o.guifont = "SauceCodePro Nerd Font:h17" -- cgit v1.2.3