diff options
| author | Raphael <glepnir@neovim.pro> | 2023-04-07 14:01:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 14:01:46 +0800 |
| commit | 1ec6f5cbf6ffc44c84783d70039df5295ca22b4e (patch) | |
| tree | 093a12a4e4fb64da32d2b51962227c52cbc4a076 /lua/lspconfig/configs.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar.gz nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar.bz2 nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar.lz nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar.xz nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.tar.zst nvim-lspconfig-1ec6f5cbf6ffc44c84783d70039df5295ca22b4e.zip | |
fix: remove vim.schedule for on_attach (#2546)
Diffstat (limited to 'lua/lspconfig/configs.lua')
| -rw-r--r-- | lua/lspconfig/configs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index 1a432694..209a6157 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -204,7 +204,7 @@ function configs.__newindex(t, config_name, config_def) -- Save the old _on_attach so that we can reference it via the BufEnter. new_config._on_attach = new_config.on_attach - new_config.on_attach = vim.schedule_wrap(function(client, bufnr) + new_config.on_attach = function(client, bufnr) if bufnr == api.nvim_get_current_buf() then M._setup_buffer(client.id, bufnr) else @@ -220,7 +220,7 @@ function configs.__newindex(t, config_name, config_def) }) end end - end) + end new_config.root_dir = root_dir new_config.workspace_folders = { |
