aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-05-03 11:46:17 -0700
committerGitHub <noreply@github.com>2021-05-03 11:46:17 -0700
commit827c164f53f5fddfdaeadc490b1d01b9c896780e (patch)
tree608da1378d31a199b8811096e090bd76f5c950cd /lua
parentMerge pull request #873 from mjlbach/fix_windows (diff)
parentWrap dofile in pcall (diff)
downloadnvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar.gz
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar.bz2
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar.lz
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar.xz
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.tar.zst
nvim-lspconfig-827c164f53f5fddfdaeadc490b1d01b9c896780e.zip
Merge pull request #877 from dimbleby/issue-876
Wrap dofile in pcall
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua
index 1023167b..798f6234 100644
--- a/lua/lspconfig.lua
+++ b/lua/lspconfig.lua
@@ -88,7 +88,7 @@ function mt:__index(k)
if configs[k] == nil then
-- dofile is used here as a performance hack to increase the speed of calls to setup({})
-- dofile does not cache module lookups, and requires the absolute path to the target file
- dofile(script_path .. 'lspconfig/' .. k .. ".lua")
+ pcall(dofile, script_path .. 'lspconfig/' .. k .. ".lua")
end
return configs[k]
end