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

@ -15,18 +15,18 @@
cfg = config.vim.languages.yaml;
on_attach = mkLuaInline (
on_attach =
if config.vim.languages.helm.lsp.enable && config.vim.languages.helm.enable
then ''
function(client, bufnr)
default_on_attach()
local filetype = vim.bo[bufnr].filetype
if filetype == "helm" then
client.stop()
then
mkLuaInline ''
function(client, bufnr)
local filetype = vim.bo[bufnr].filetype
if filetype == "helm" then
client.stop()
end
end
end''
else "default_on_attach"
);
''
else null;
defaultServers = ["yaml-language-server"];
servers = {