mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
Relax client attach condition and allow any buftype again
Restricting buftype to "" broke support for opening .class files
This commit is contained in:
parent
40e8494e04
commit
6bfd159158
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ function M.start_or_attach(config, opts, start_opts)
|
||||||
|
|
||||||
local uri = vim.uri_from_bufnr(bufnr)
|
local uri = vim.uri_from_bufnr(bufnr)
|
||||||
-- jdtls requires files to exist on the filesystem; it doesn't play well with scratch buffers
|
-- 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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue