From 5ecf3c9ae0bd28c498d6a2c7e56b6679d909c065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 31 Mar 2022 15:12:02 +0200 Subject: add init failed msg --- lua/user/autopairs.lua | 1 + lua/user/bufferline.lua | 1 + lua/user/cmp.lua | 1 + lua/user/comment.lua | 1 + lua/user/gitsigns.lua | 1 + lua/user/lsp/init.lua | 1 + lua/user/lsp/lsp-installer.lua | 1 + lua/user/lsp/null-ls.lua | 1 + lua/user/lsp/settings/jsonls.lua | 1 + lua/user/telescope.lua | 1 + lua/user/treesitter.lua | 1 + 11 files changed, 11 insertions(+) diff --git a/lua/user/autopairs.lua b/lua/user/autopairs.lua index 577e571..96be89e 100644 --- a/lua/user/autopairs.lua +++ b/lua/user/autopairs.lua @@ -1,6 +1,7 @@ -- Setup nvim-cmp. local status_ok, npairs = pcall(require, "nvim-autopairs") if not status_ok then + print "nvim-autopairs init failed" return end diff --git a/lua/user/bufferline.lua b/lua/user/bufferline.lua index dff1e43..9e0a958 100644 --- a/lua/user/bufferline.lua +++ b/lua/user/bufferline.lua @@ -1,5 +1,6 @@ local status_ok, bufferline = pcall(require, "bufferline") if not status_ok then + print "bufferline init failed" return end diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua index bf28333..81e8160 100644 --- a/lua/user/cmp.lua +++ b/lua/user/cmp.lua @@ -1,5 +1,6 @@ local cmp_status_ok, cmp = pcall(require, "cmp") if not cmp_status_ok then + print "cmp init failed" return end diff --git a/lua/user/comment.lua b/lua/user/comment.lua index 7f8870f..7d36862 100644 --- a/lua/user/comment.lua +++ b/lua/user/comment.lua @@ -1,5 +1,6 @@ local status_ok, comment = pcall(require, "Comment") if not status_ok then + print "Comment init failed" return end diff --git a/lua/user/gitsigns.lua b/lua/user/gitsigns.lua index 923a2ea..ca88cdf 100644 --- a/lua/user/gitsigns.lua +++ b/lua/user/gitsigns.lua @@ -1,5 +1,6 @@ local status_ok, gitsigns = pcall(require, "gitsigns") if not status_ok then + print "gitsigns init failed" return end diff --git a/lua/user/lsp/init.lua b/lua/user/lsp/init.lua index add8bf8..9dff1be 100644 --- a/lua/user/lsp/init.lua +++ b/lua/user/lsp/init.lua @@ -1,5 +1,6 @@ local status_ok, lspconfig = pcall(require, "lspconfig") if not status_ok then + print "lspconfig init failed" return end diff --git a/lua/user/lsp/lsp-installer.lua b/lua/user/lsp/lsp-installer.lua index 7675878..d1bda00 100644 --- a/lua/user/lsp/lsp-installer.lua +++ b/lua/user/lsp/lsp-installer.lua @@ -1,5 +1,6 @@ local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer") if not status_ok then + print "nvim-lsp-installer init failed" return end diff --git a/lua/user/lsp/null-ls.lua b/lua/user/lsp/null-ls.lua index 15720d1..1dc7ace 100644 --- a/lua/user/lsp/null-ls.lua +++ b/lua/user/lsp/null-ls.lua @@ -1,5 +1,6 @@ local null_ls_status_ok, null_ls = pcall(require, "null-ls") if not null_ls_status_ok then + print "null-ls init failed" return end diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua index 647be26..da58c44 100644 --- a/lua/user/lsp/settings/jsonls.lua +++ b/lua/user/lsp/settings/jsonls.lua @@ -1,6 +1,7 @@ local default_schemas = nil local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls") if not status_ok then + print "nlspsettings.jsonls init failed" return else default_schemas = jsonls_settings.get_default_schemas() diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua index 29d2885..86d1e51 100644 --- a/lua/user/telescope.lua +++ b/lua/user/telescope.lua @@ -1,5 +1,6 @@ local status_ok, telescope = pcall(require, "telescope") if not status_ok then + print "telescope init failed" return end diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua index 889373f..5ca5444 100644 --- a/lua/user/treesitter.lua +++ b/lua/user/treesitter.lua @@ -1,5 +1,6 @@ local status_ok, configs = pcall(require, "nvim-treesitter.configs") if not status_ok then + print "nvim-treesitter.configs init failed" return end -- cgit v1.1-2-g2b99