treewide: remove usage of default_on_attach outside LspAttach

This commit is contained in:
Ching Pei Yang 2025-09-26 00:29:22 +02:00
commit c13edf9961
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
9 changed files with 16 additions and 31 deletions

View file

@ -26,8 +26,6 @@
workspace_required = true;
on_attach = mkLuaInline ''
function(client, bufnr)
default_on_attach(client, bufnr)
local function switch_source_header(bufnr)
local method_name = "textDocument/switchSourceHeader"
local params = vim.lsp.util.make_text_document_params(bufnr)
@ -77,8 +75,6 @@
};
on_attach = mkLuaInline ''
function(client, bufnr)
default_on_attach(client, bufnr)
local function switch_source_header(bufnr)
local method_name = "textDocument/switchSourceHeader"
local client = vim.lsp.get_clients({ bufnr = bufnr, name = "clangd", })[1]