Mason offline #1990
-
|
It's the offline guy again 🙂. I have a setup where one machine is online, and it shares a filesystem mount with my offline environment. The online machine mounts the fs rw, offline machine mounts it readonly. I'm trying to stop all plugins from attempting internet access, which are causing costly poll timeouts. I bounce in and out of nvim all day long. Startup time is super critical for me. I share the same nvim config between the two using symlinks to the shared filesystem, including ~/.local/share/nvim. I have Mason configured like this for offline.
When I enable Mason and do this (just a $ strace -f -t nvim 2> ~/foo
$ grep Timeout ~/foo | wc -lI get
I can't disable Mason since it's intertwined with LSP config (Kickstart-based config). I tried detangling it, no luck. {
-- Main LSP Configuration
"neovim/nvim-lspconfig",
enabled = true,
dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim
-- Mason must be loaded before its dependents so we need to set it up here.
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
{ "mason-org/mason.nvim", enabled = true, opts = { ui = { check_outdated_packages_on_open = false } } },
{ "mason-org/mason-lspconfig.nvim", enabled = true },
{ "WhoIsSethDaniel/mason-tool-installer.nvim", enabled = true },
...
require("mason-tool-installer").setup({ ensure_installed = ensure_installed, auto_update = false })The timeouts generally look like this. I don't know where How can I stop Mason from attempting all internet access? Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Mason won't access internet when you are not opening the Mason UI. You should disable |
Beta Was this translation helpful? Give feedback.
Mason won't access internet when you are not opening the Mason UI. You should disable
run_on_startoption ofmason-tool-installer. If you are usinglazy.nvimas plugin manager. You can lazy-load on commands ofmason-tool-installer.