summaryrefslogtreecommitdiff
path: root/lua/settings.lua
diff options
context:
space:
mode:
authorrmagillxyz <[email protected]>2021-05-27 00:04:15 -0400
committerGitHub <[email protected]>2021-05-27 00:04:15 -0400
commit31fcd6c1dfe47370ffc12835cb410a0cabe66cbc (patch)
treeca0508b5b8c2a50f0422c820d490594fa11cd30d /lua/settings.lua
parent69c13aaae4f7694f88b8dedda79c9d48f5dde976 (diff)
bug fix for netrw's gx command (#431)
* open remote link in browser correctly with gx, not in a tmp file
Diffstat (limited to 'lua/settings.lua')
-rw-r--r--lua/settings.lua4
1 files changed, 3 insertions, 1 deletions
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"