+6
-0
lines changedFilter options
+6
-0
lines changed Original file line number Diff line number Diff line change
@@ -1156,6 +1156,12 @@ function lsp.buf_attach_client(bufnr, client_id)
1156
1156
client_id = {client_id, 'n'};
1157
1157
}
1158
1158
bufnr = resolve_bufnr(bufnr)
1159
+
if not vim.api.nvim_buf_is_loaded(bufnr) then
1160
+
local _ = log.warn() and log.warn(
1161
+
string.format("buf_attach_client called on unloaded buffer (id: %d): ", bufnr)
1162
+
)
1163
+
return false
1164
+
end
1159
1165
local buffer_client_ids = all_buffer_active_clients[bufnr]
1160
1166
-- This is our first time attaching to this buffer.
1161
1167
if not buffer_client_ids then
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4