diff options
| author | oncomouse <oncomouse@gmail.com> | 2022-01-09 12:09:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 10:09:18 -0800 |
| commit | d285f720ed2b26b687a06e9c7d5d41353dd2b743 (patch) | |
| tree | 19248ba77db8febb212ba0e0a3d14c717c98f08c /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-0.1.1.tar nvim-lspconfig-0.1.1.tar.gz nvim-lspconfig-0.1.1.tar.bz2 nvim-lspconfig-0.1.1.tar.lz nvim-lspconfig-0.1.1.tar.xz nvim-lspconfig-0.1.1.tar.zst nvim-lspconfig-0.1.1.zip | |
fix: try_add_wrapper errors if passed nil for bufnr (#1648)v0.1.1
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index b375fef0..c3ea2d4d 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -249,6 +249,7 @@ function configs.__newindex(t, config_name, config_def) end function manager.try_add_wrapper(bufnr) + bufnr = bufnr or api.nvim_get_current_buf() local buf_filetype = vim.api.nvim_buf_get_option(bufnr, 'filetype') for _, filetype in ipairs(config.filetypes) do if buf_filetype == filetype then |
