From f51e91a391218d0aae70b52faaa3eb999d8eb2b4 Mon Sep 17 00:00:00 2001 From: tomasky Date: Sun, 31 Jul 2022 22:35:43 +0800 Subject: [PATCH] fix(lsp): lsp on_attach was not called at normal mode --- lua/core/lazy_load.lua | 2 +- lua/plugins/init.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/core/lazy_load.lua b/lua/core/lazy_load.lua index fccb152..84d5f00 100644 --- a/lua/core/lazy_load.lua +++ b/lua/core/lazy_load.lua @@ -17,7 +17,7 @@ M.lazy_load = function(tb) vim.defer_fn(function() require("packer").loader(tb.plugin) if tb.plugin == "nvim-lspconfig" then - vim.cmd "silent! e %" + vim.cmd "silent! do FileType" end end, 0) else diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 3757141..7a8b8f5 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -18,6 +18,7 @@ local plugins = { ["NvChad/ui"] = { after = "base46", + module = "nvchad_ui", config = function() require("plugins.configs.others").nvchad_ui() end,