diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-04-22 00:28:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 00:28:45 -0700 |
| commit | 0840c91e25557a47ed559d2281b0b65fe33b271f (patch) | |
| tree | f98779801d46c1561a48769cd407ee771236760f /lua | |
| parent | Merge pull request #859 from mjlbach/lazy_require_lspinfo (diff) | |
| parent | bug: bufnr not passed to on_attach (diff) | |
| download | nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar.gz nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar.bz2 nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar.lz nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar.xz nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.tar.zst nvim-lspconfig-0840c91e25557a47ed559d2281b0b65fe33b271f.zip | |
Merge pull request #857 from mnowotnik/master
bug: bufnr not passed to on_attach
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index 9f409c49..91eaf06a 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -139,10 +139,11 @@ function configs.__newindex(t, config_name, config_def) M._setup_buffer(client.id, bufnr) else api.nvim_command(string.format( - "autocmd BufEnter <buffer=%d> ++once lua require'lspconfig'[%q]._setup_buffer(%d)" + "autocmd BufEnter <buffer=%d> ++once lua require'lspconfig'[%q]._setup_buffer(%d,%d)" , bufnr , config_name , client.id + , bufnr )) end end) |
