return { 'towolf/vim-helm', config = function() local function detach_yamlls() local clients = vim.lsp.get_active_clients() for client_id, client in pairs(clients) do if client.name == "yamlls" then vim.lsp.buf_detach_client(0, client_id) end end end local gotmpl_group = vim.api.nvim_create_augroup("_gotmpl", { clear = true }) vim.api.nvim_create_autocmd("FileType", { group = gotmpl_group, pattern = "yaml", callback = function() vim.schedule(function() local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false) for _, line in ipairs(lines) do if string.match(line, "{{.+}}") then vim.defer_fn(detach_yamlls, 500) return end end end) end, }) end }