Relax client attach condition and allow any buftype again

Restricting buftype to "" broke support for opening .class files
This commit is contained in:
Mathias Fussenegger 2024-07-10 23:28:26 +02:00 committed by Mathias Fußenegger
parent 40e8494e04
commit 6bfd159158

View file

@ -295,7 +295,7 @@ function M.start_or_attach(config, opts, start_opts)
local uri = vim.uri_from_bufnr(bufnr)
-- jdtls requires files to exist on the filesystem; it doesn't play well with scratch buffers
if not vim.startswith(uri, "file://") or vim.bo[bufnr].buftype ~= "" then
if not vim.startswith(uri, "file://") then
return
end