diff options
author | LostNeophyte <[email protected]> | 2023-02-07 17:30:14 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-07 17:30:14 +0100 |
commit | 98fb64764fd4bfabc93d5c3b9d1d26d38d8828d6 (patch) | |
tree | e3caab1eb8b006f6dccbad9b5efa0d5fdee02cb3 /lua/lvim/plugins.lua | |
parent | 24d8780d7392f444f852e646eb8e438b4c629850 (diff) |
fix(lsp): lazy loading (#3824)
Diffstat (limited to 'lua/lvim/plugins.lua')
-rw-r--r-- | lua/lvim/plugins.lua | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index d2efaf33..a1ed58f1 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -9,6 +9,13 @@ local core_plugins = { { "williamboman/mason-lspconfig.nvim", cmd = { "LspInstall", "LspUninstall" }, + config = function() + require("mason-lspconfig").setup(lvim.lsp.installer.setup) + + -- automatic_installation is handled by lsp-manager + local settings = require "mason-lspconfig.settings" + settings.current.automatic_installation = false + end, lazy = true, dependencies = "mason.nvim", }, @@ -122,7 +129,15 @@ local core_plugins = { vim.opt.rtp:prepend(path) -- treesitter needs to be before nvim's runtime in rtp require("lvim.core.treesitter").setup() end, - cmd = { "TSInstall", "TSUninstall", "TSUpdate", "TSInstallInfo", "TSInstallSync", "TSInstallFromGrammar" }, + cmd = { + "TSInstall", + "TSUninstall", + "TSUpdate", + "TSUpdateSync", + "TSInstallInfo", + "TSInstallSync", + "TSInstallFromGrammar", + }, event = "User FileOpened", }, { |