commit b7195de20a4bbbe4022d4eb770cfabec2f769ca7
parent 863643a100c4db4d10bbfbf76bb9d89a0c56daa2
Author: Tomas Nemec <nemi@skaut.cz>
Date: Mon, 26 Sep 2022 12:13:09 +0200
update
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/plugin/ws.lua b/plugin/ws.lua
@@ -10,6 +10,7 @@ for name, setup in pairs(ws) do
vim.api.nvim_create_autocmd('BufEnter', {
group = group,
callback = function()
+ if not pcall(require, 'lspconfig') then return end
if require('lspconfig.util').root_pattern(setup.root_pattern)(vim.fn.getcwd()) then
setup.config()
end