diff --git a/lua/modules/plugins/completion.lua b/lua/modules/plugins/completion.lua index 063cc9e18..168a899e6 100644 --- a/lua/modules/plugins/completion.lua +++ b/lua/modules/plugins/completion.lua @@ -7,13 +7,19 @@ completion["neovim/nvim-lspconfig"] = { config = require("completion.lsp"), dependencies = { { "williamboman/mason.nvim" }, - { "williamboman/mason-lspconfig.nvim" }, { "Jint-lzxy/lsp_signature.nvim", config = require("completion.lsp-signature"), }, }, } + +completion["williamboman/mason-lspconfig.nvim"] = { + lazy = true, + event = { "CursorHold", "CursorHoldI" }, + dependencies = { "neovim/nvim-lspconfig" }, +} + completion["nvimdev/lspsaga.nvim"] = { lazy = true, event = "LspAttach", diff --git a/lua/modules/plugins/lang.lua b/lua/modules/plugins/lang.lua index 5154e9401..05a280dd0 100644 --- a/lua/modules/plugins/lang.lua +++ b/lua/modules/plugins/lang.lua @@ -8,7 +8,8 @@ lang["fatih/vim-go"] = { } lang["simrat39/rust-tools.nvim"] = { lazy = true, - ft = "rust", + ft = { "rust", "rs" }, + event = { "BufReadPost *.rs" }, config = require("lang.rust-tools"), dependencies = { "nvim-lua/plenary.nvim" }, }