diff options
| author | Raphael <glepnir@neovim.pro> | 2022-12-29 16:54:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-29 16:54:54 +0800 |
| commit | d066a47be7713dba46736aece1792a4e13aaf1de (patch) | |
| tree | a03ca4af9e8af2516f07ed3254925410051af0af /lua/lspconfig/configs.lua | |
| parent | fix: get all client from clients cache in manager.clients (#2365) (diff) | |
| download | nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar.gz nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar.bz2 nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar.lz nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar.xz nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.tar.zst nvim-lspconfig-d066a47be7713dba46736aece1792a4e13aaf1de.zip | |
fix: not register workspace when in single file mode (#2367)
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 a4eb8351..1d9d9a62 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -72,8 +72,8 @@ function configs.__newindex(t, config_name, config_def) end api.nvim_create_autocmd(event, { pattern = pattern, - callback = function() - M.manager.try_add() + callback = function(opt) + M.manager.try_add(opt.buf) end, group = lsp_group, desc = string.format( |
