diff options
| author | David Hotham <david.hotham@metaswitch.com> | 2021-05-03 19:40:36 +0100 |
|---|---|---|
| committer | David Hotham <david.hotham@metaswitch.com> | 2021-05-03 19:40:36 +0100 |
| commit | a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347 (patch) | |
| tree | 608da1378d31a199b8811096e090bd76f5c950cd /lua | |
| parent | Merge pull request #873 from mjlbach/fix_windows (diff) | |
| download | nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar.gz nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar.bz2 nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar.lz nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar.xz nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.tar.zst nvim-lspconfig-a0d8ea24abd7f6a45286c95e9a10f1bddc1dc347.zip | |
Wrap dofile in pcall
Fixes #876
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig.lua | 2 |
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 |
